projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0756ac3
)
i2c: mux: pinctrl: stop double error reporting
author
Peter Rosin
<peda@axentia.se>
Mon, 3 Apr 2017 08:14:25 +0000
(10:14 +0200)
committer
Peter Rosin
<peda@axentia.se>
Mon, 3 Apr 2017 12:07:34 +0000
(14:07 +0200)
i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pinctrl.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/muxes/i2c-mux-pinctrl.c
b/drivers/i2c/muxes/i2c-mux-pinctrl.c
index
35bb775
..
7c0c264
100644
(file)
--- a/
drivers/i2c/muxes/i2c-mux-pinctrl.c
+++ b/
drivers/i2c/muxes/i2c-mux-pinctrl.c
@@
-245,10
+245,8
@@
static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
(mux->pdata->base_bus_num + i) : 0;
ret = i2c_mux_add_adapter(muxc, bus, i, 0);
- if (ret) {
- dev_err(&pdev->dev, "Failed to add adapter %d\n", i);
+ if (ret)
goto err_del_adapter;
- }
}
return 0;