Commit 399d62ac authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: print more info when of_i2c_notify fails

Use dev_err instead of pr_err for more details.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 84d0b617
...@@ -2103,8 +2103,8 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action, ...@@ -2103,8 +2103,8 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action,
put_device(&adap->dev); put_device(&adap->dev);
if (IS_ERR(client)) { if (IS_ERR(client)) {
pr_err("%s: failed to create for '%s'\n", dev_err(&adap->dev, "failed to create client for '%s'\n",
__func__, rd->dn->full_name); rd->dn->full_name);
return notifier_from_errno(PTR_ERR(client)); return notifier_from_errno(PTR_ERR(client));
} }
break; break;
......
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