aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorKevin Wells <kevin.wells@nxp.com>2009-11-11 18:34:17 -0500
committerBen Dooks <ben-linux@fluff.org>2009-12-08 19:19:13 -0500
commit155a49319fabae97c14c7eb474562f2bdfe5af1f (patch)
treeb4af92ede52133c8fe6b5e928d5241c9f4e5e2dd /drivers/i2c
parentef871432e1334dea4c79f9875f4db87cee7b9b50 (diff)
i2c-pnx: Map I2C adapter number to platform ID number
Map I2C adapter number to platform ID number Signed-off-by: Kevin Wells <kevin.wells@nxp.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-pnx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c
index fbab6846ae64..5d1c2603a130 100644
--- a/drivers/i2c/busses/i2c-pnx.c
+++ b/drivers/i2c/busses/i2c-pnx.c
@@ -638,7 +638,8 @@ static int __devinit i2c_pnx_probe(struct platform_device *pdev)
638 638
639 /* Register this adapter with the I2C subsystem */ 639 /* Register this adapter with the I2C subsystem */
640 i2c_pnx->adapter->dev.parent = &pdev->dev; 640 i2c_pnx->adapter->dev.parent = &pdev->dev;
641 ret = i2c_add_adapter(i2c_pnx->adapter); 641 i2c_pnx->adapter->nr = pdev->id;
642 ret = i2c_add_numbered_adapter(i2c_pnx->adapter);
642 if (ret < 0) { 643 if (ret < 0) {
643 dev_err(&pdev->dev, "I2C: Failed to add bus\n"); 644 dev_err(&pdev->dev, "I2C: Failed to add bus\n");
644 goto out_irq; 645 goto out_irq;