projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c99a23e
)
i2c: mux: reg: stop double error reporting
author
Peter Rosin
<peda@axentia.se>
Mon, 3 Apr 2017 08:14:29 +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-reg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/muxes/i2c-mux-reg.c
b/drivers/i2c/muxes/i2c-mux-reg.c
index c6a90b4a9c626dcf4fdf65e51e2f01b5b6ac4968..406d5059072cbe41964105d752a42236e66f7c8d 100644
(file)
--- a/
drivers/i2c/muxes/i2c-mux-reg.c
+++ b/
drivers/i2c/muxes/i2c-mux-reg.c
@@
-222,10
+222,8
@@
static int i2c_mux_reg_probe(struct platform_device *pdev)
class = mux->data.classes ? mux->data.classes[i] : 0;
ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class);
- if (ret) {
- dev_err(&pdev->dev, "Failed to add adapter %d\n", i);
+ if (ret)
goto add_adapter_failed;
- }
}
dev_dbg(&pdev->dev, "%d port mux on %s adapter\n",