summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c-core-of.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2018-01-18 13:11:29 +0100
committerWolfram Sang <wsa@the-dreams.de>2018-02-26 20:40:46 +0100
commitf1c87ceb02912201dff70e58fd15761292951b09 (patch)
treea9f51ea66fd6fcb3f54d19487459b7446fb27e21 /drivers/i2c/i2c-core-of.c
parent4a3928c6f8a53fa1aed28ccba227742486e8ddcb (diff)
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>
Diffstat (limited to 'drivers/i2c/i2c-core-of.c')
-rw-r--r--drivers/i2c/i2c-core-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c
index 8d474bb1dc15..b652579ed04e 100644
--- a/drivers/i2c/i2c-core-of.c
+++ b/drivers/i2c/i2c-core-of.c
@@ -103,7 +103,7 @@ void of_i2c_register_devices(struct i2c_adapter *adap)
client = of_i2c_register_device(adap, node);
if (IS_ERR(client)) {
- dev_warn(&adap->dev,
+ dev_err(&adap->dev,
"Failed to create I2C device for %pOF\n",
node);
of_node_clear_flag(node, OF_POPULATED);