projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a3928c
)
i2c: of: change log level of failed device creation
author
Wolfram Sang
<wsa@the-dreams.de>
Thu, 18 Jan 2018 12:11:29 +0000
(13:11 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 26 Feb 2018 19:40:46 +0000
(20:40 +0100)
If we cannot create a device, this is an error, not a warning. Fix the
log level.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-of.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-core-of.c
b/drivers/i2c/i2c-core-of.c
index
8d474bb
..
b652579
100644
(file)
--- a/
drivers/i2c/i2c-core-of.c
+++ b/
drivers/i2c/i2c-core-of.c
@@
-103,7
+103,7
@@
void of_i2c_register_devices(struct i2c_adapter *adap)
client = of_i2c_register_device(adap, node);
if (IS_ERR(client)) {
- dev_
warn
(&adap->dev,
+ dev_
err
(&adap->dev,
"Failed to create I2C device for %pOF\n",
node);
of_node_clear_flag(node, OF_POPULATED);