summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-04-03 10:14:22 +0200
committerPeter Rosin <peda@axentia.se>2017-04-03 14:07:33 +0200
commit0756ac323573406662c56d3f26a20b4382451c96 (patch)
tree0faf175efbff78f094da936961c7f4bc0950fd45 /drivers/i2c
parent664d9bbadaf61c80a6e5c7c6c83f80a0731bc184 (diff)
downloadblackbird-op-linux-0756ac323573406662c56d3f26a20b4382451c96.tar.gz
blackbird-op-linux-0756ac323573406662c56d3f26a20b4382451c96.zip
i2c: mux: pca954x: 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')
-rw-r--r--drivers/i2c/muxes/i2c-mux-pca954x.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
index 15dfc1648716..b2a85a2d00f7 100644
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
@@ -434,13 +434,8 @@ static int pca954x_probe(struct i2c_client *client,
idle_disconnect_dt) << num;
ret = i2c_mux_add_adapter(muxc, force, num, class);
-
- if (ret) {
- dev_err(&client->dev,
- "failed to register multiplexed adapter"
- " %d as bus %d\n", num, force);
+ if (ret)
goto fail_del_adapters;
- }
}
dev_info(&client->dev,
OpenPOWER on IntegriCloud