summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-04-03 10:14:25 +0200
committerPeter Rosin <peda@axentia.se>2017-04-03 14:07:34 +0200
commitc99a23e55fbe97acb235e7ebbd8800870c3e689f (patch)
treec7c96bab610f37eed6746e6fd1d98276114a35fc
parent0756ac323573406662c56d3f26a20b4382451c96 (diff)
downloadop-kernel-dev-c99a23e55fbe97acb235e7ebbd8800870c3e689f.zip
op-kernel-dev-c99a23e55fbe97acb235e7ebbd8800870c3e689f.tar.gz
i2c: mux: pinctrl: 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>
-rw-r--r--drivers/i2c/muxes/i2c-mux-pinctrl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c
index 35bb775..7c0c264 100644
--- 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;
OpenPOWER on IntegriCloud