Skip to content

Commit

Permalink
i2c-pnx: Map I2C adapter number to platform ID number
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Wells authored and Ben Dooks committed Dec 9, 2009
1 parent ef87143 commit 155a493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-pnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ static int __devinit i2c_pnx_probe(struct platform_device *pdev)

/* Register this adapter with the I2C subsystem */
i2c_pnx->adapter->dev.parent = &pdev->dev;
ret = i2c_add_adapter(i2c_pnx->adapter);
i2c_pnx->adapter->nr = pdev->id;
ret = i2c_add_numbered_adapter(i2c_pnx->adapter);
if (ret < 0) {
dev_err(&pdev->dev, "I2C: Failed to add bus\n");
goto out_irq;
Expand Down

0 comments on commit 155a493

Please sign in to comment.