i2c: Add OF-style registration and binding
This patch adds OF hooks to the i2c core so that devices can automatically be registered based on device tree data. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -607,7 +607,6 @@ static int __devinit fsl_i2c_probe(struct of_device *op,
|
||||
dev_err(i2c->dev, "failed to add adapter\n");
|
||||
goto fail_add;
|
||||
}
|
||||
of_i2c_register_devices(&i2c->adap);
|
||||
|
||||
return result;
|
||||
|
||||
|
Reference in New Issue
Block a user