diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-iop3xx.c')
-rw-r--r-- | 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 90e2d9350c1b..440342bc62e1 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) | |||
491 | new_adapter->id = I2C_HW_IOP3XX; | 491 | new_adapter->id = I2C_HW_IOP3XX; |
492 | new_adapter->owner = THIS_MODULE; | 492 | new_adapter->owner = THIS_MODULE; |
493 | new_adapter->dev.parent = &pdev->dev; | 493 | new_adapter->dev.parent = &pdev->dev; |
494 | new_adapter->nr = pdev->id; | ||
494 | 495 | ||
495 | /* | 496 | /* |
496 | * Default values...should these come in from board code? | 497 | * Default values...should these come in from board code? |
@@ -508,7 +509,7 @@ iop3xx_i2c_probe(struct platform_device *pdev) | |||
508 | platform_set_drvdata(pdev, new_adapter); | 509 | platform_set_drvdata(pdev, new_adapter); |
509 | new_adapter->algo_data = adapter_data; | 510 | new_adapter->algo_data = adapter_data; |
510 | 511 | ||
511 | i2c_add_adapter(new_adapter); | 512 | i2c_add_numbered_adapter(new_adapter); |
512 | 513 | ||
513 | return 0; | 514 | return 0; |
514 | 515 | ||