Commit fe2c8d51 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

i2c: Remove the warning on missing adapter device

Now that the i2c_adapter migration plan changed and we are going to
keep i2c_adapter.dev, it's no longer that urgent to add a proper device
to all i2c_adapter drivers. Thus is seems resonable to degrade the
warning asking authors to migrate their driver to a debug message.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 12a917f6
...@@ -217,9 +217,8 @@ int i2c_add_adapter(struct i2c_adapter *adap) ...@@ -217,9 +217,8 @@ int i2c_add_adapter(struct i2c_adapter *adap)
*/ */
if (adap->dev.parent == NULL) { if (adap->dev.parent == NULL) {
adap->dev.parent = &platform_bus; adap->dev.parent = &platform_bus;
printk(KERN_WARNING "**WARNING** I2C adapter driver [%s] " pr_debug("I2C adapter driver [%s] forgot to specify "
"forgot to specify physical device; fix it!\n", "physical device\n", adap->name);
adap->name);
} }
sprintf(adap->dev.bus_id, "i2c-%d", adap->nr); sprintf(adap->dev.bus_id, "i2c-%d", adap->nr);
adap->dev.driver = &i2c_adapter_driver; adap->dev.driver = &i2c_adapter_driver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment