aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-07-09 00:35:02 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-07-14 09:07:41 -0400
commit399d62acc2ac5aa091c55810ae5190294b60e92f (patch)
tree963f67e7bd79ff8b5863d690c5e4c8b8924d51c9 /drivers/i2c/i2c-core.c
parent84d0b61773c7af077be71f74f0d7fea65af7f9b0 (diff)
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>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r--drivers/i2c/i2c-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 1a91b5173104..a2f69db4f4df 100644
--- 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,
2103 put_device(&adap->dev); 2103 put_device(&adap->dev);
2104 2104
2105 if (IS_ERR(client)) { 2105 if (IS_ERR(client)) {
2106 pr_err("%s: failed to create for '%s'\n", 2106 dev_err(&adap->dev, "failed to create client for '%s'\n",
2107 __func__, rd->dn->full_name); 2107 rd->dn->full_name);
2108 return notifier_from_errno(PTR_ERR(client)); 2108 return notifier_from_errno(PTR_ERR(client));
2109 } 2109 }
2110 break; 2110 break;