From: Kevin Wells Date: Wed, 11 Nov 2009 23:34:17 +0000 (+0100) Subject: i2c-pnx: Map I2C adapter number to platform ID number X-Git-Tag: MMI-PSA29.97-13-9~25705^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=155a49319fabae97c14c7eb474562f2bdfe5af1f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git i2c-pnx: Map I2C adapter number to platform ID number Map I2C adapter number to platform ID number Signed-off-by: Kevin Wells Signed-off-by: Ben Dooks --- 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) /* 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;