|
@@ -327,9 +327,10 @@ static int fsl_i2c_probe(struct platform_device *pdev)
|
|
|
platform_set_drvdata(pdev, i2c);
|
|
|
|
|
|
i2c->adap = mpc_ops;
|
|
|
+ i2c->adap.nr = pdev->id;
|
|
|
i2c_set_adapdata(&i2c->adap, i2c);
|
|
|
i2c->adap.dev.parent = &pdev->dev;
|
|
|
- if ((result = i2c_add_adapter(&i2c->adap)) < 0) {
|
|
|
+ if ((result = i2c_add_numbered_adapter(&i2c->adap)) < 0) {
|
|
|
printk(KERN_ERR "i2c-mpc - failed to add adapter\n");
|
|
|
goto fail_add;
|
|
|
}
|