diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-07-09 13:35:02 +0900 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-14 22:07:41 +0900 |
commit | 399d62acc2ac5aa091c55810ae5190294b60e92f (patch) | |
tree | 963f67e7bd79ff8b5863d690c5e4c8b8924d51c9 /drivers/i2c | |
parent | 84d0b61773c7af077be71f74f0d7fea65af7f9b0 (diff) | |
download | op-kernel-dev-399d62acc2ac5aa091c55810ae5190294b60e92f.zip op-kernel-dev-399d62acc2ac5aa091c55810ae5190294b60e92f.tar.gz |
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')
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 1a91b51..a2f69db 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, 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; |