i2c: print more info when of_i2c_notify fails
Use dev_err instead of pr_err for more details. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
84d0b61773
commit
399d62acc2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue