projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i2c: print more info when of_i2c_notify fails
[cascardo/linux.git]
/
drivers
/
i2c
/
i2c-core.c
diff --git
a/drivers/i2c/i2c-core.c
b/drivers/i2c/i2c-core.c
index
1a91b51
..
a2f69db
100644
(file)
--- a/
drivers/i2c/i2c-core.c
+++ b/
drivers/i2c/i2c-core.c
@@
-2103,8
+2103,8
@@
static int of_i2c_notify(struct notifier_block *nb, unsigned long action,
put_device(&adap->dev);
if (IS_ERR(client)) {
put_device(&adap->dev);
if (IS_ERR(client)) {
-
pr_err("%s: failed to create
for '%s'\n",
-
__func__,
rd->dn->full_name);
+
dev_err(&adap->dev, "failed to create client
for '%s'\n",
+ rd->dn->full_name);
return notifier_from_errno(PTR_ERR(client));
}
break;
return notifier_from_errno(PTR_ERR(client));
}
break;