Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=757ba4c697244da878b65585d8cb671da1cb9eaf
Commit:     757ba4c697244da878b65585d8cb671da1cb9eaf
Parent:     7375cd822d600b4e8b83cbc025422e4267bf5fac
Author:     Martin Michlmayr <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 12 14:12:30 2007 +0200
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Thu Jul 12 14:12:30 2007 +0200

    i2c-iop3xx: Switch to static adapter numbering
    
    Update the IOP3xx I2C driver to use i2c_add_numbered_adapter(), so that
    later patches can convert boards to using new-style drivers.
    
    Signed-off-by: Martin Michlmayr <[EMAIL PROTECTED]>
    Tested-by: Voipio Riku <[EMAIL PROTECTED]>
    Cc: Dan J Williams <[EMAIL PROTECTED]>
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
---
 drivers/i2c/busses/i2c-iop3xx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c
index 90e2d93..440342b 100644
--- a/drivers/i2c/busses/i2c-iop3xx.c
+++ b/drivers/i2c/busses/i2c-iop3xx.c
@@ -491,6 +491,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
        new_adapter->id = I2C_HW_IOP3XX;
        new_adapter->owner = THIS_MODULE;
        new_adapter->dev.parent = &pdev->dev;
+       new_adapter->nr = pdev->id;
 
        /*
         * Default values...should these come in from board code?
@@ -508,7 +509,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, new_adapter);
        new_adapter->algo_data = adapter_data;
 
-       i2c_add_adapter(new_adapter);
+       i2c_add_numbered_adapter(new_adapter);
 
        return 0;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to