i2c: of: change log level of failed device creation
If we cannot create a device, this is an error, not a warning. Fix the log level. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
4a3928c6f8
commit
f1c87ceb02
|
@ -103,7 +103,7 @@ void of_i2c_register_devices(struct i2c_adapter *adap)
|
||||||
|
|
||||||
client = of_i2c_register_device(adap, node);
|
client = of_i2c_register_device(adap, node);
|
||||||
if (IS_ERR(client)) {
|
if (IS_ERR(client)) {
|
||||||
dev_warn(&adap->dev,
|
dev_err(&adap->dev,
|
||||||
"Failed to create I2C device for %pOF\n",
|
"Failed to create I2C device for %pOF\n",
|
||||||
node);
|
node);
|
||||||
of_node_clear_flag(node, OF_POPULATED);
|
of_node_clear_flag(node, OF_POPULATED);
|
||||||
|
|
Loading…
Reference in New Issue