aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/muxes
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-04-03 10:14:29 +0200
committerPeter Rosin <peda@axentia.se>2017-04-03 14:07:34 +0200
commitf089236114cb09594d7e27a15ed72c2ebb669448 (patch)
tree57eb6658330f050be2517a058ad9120a25961194 /drivers/i2c/muxes
parenti2c: mux: pinctrl: stop double error reporting (diff)
downloadlinux-dev-f089236114cb09594d7e27a15ed72c2ebb669448.tar.xz
linux-dev-f089236114cb09594d7e27a15ed72c2ebb669448.zip
i2c: mux: reg: stop double error reporting
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>
Diffstat (limited to 'drivers/i2c/muxes')
-rw-r--r--drivers/i2c/muxes/i2c-mux-reg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c
index c6a90b4a9c62..406d5059072c 100644
--- 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",