summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-04-03 11:14:19 +0300
committerPeter Rosin <peda@axentia.se>2017-04-03 15:07:33 +0300
commit664d9bbadaf61c80a6e5c7c6c83f80a0731bc184 (patch)
treebb3bd8bdd2e5a6127081248636e9027dbf6fff17 /drivers/i2c
parent1b00900fa0bdd4a634f6864efe3d07c216523688 (diff)
downloadlinux-664d9bbadaf61c80a6e5c7c6c83f80a0731bc184.tar.xz
i2c: mux: pca9541: 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-pca9541.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c
index 77840f7845a1..9e318c9516c7 100644
--- a/drivers/i2c/muxes/i2c-mux-pca9541.c
+++ b/drivers/i2c/muxes/i2c-mux-pca9541.c
@@ -369,10 +369,8 @@ static int pca9541_probe(struct i2c_client *client,
i2c_set_clientdata(client, muxc);
ret = i2c_mux_add_adapter(muxc, force, 0, 0);
- if (ret) {
- dev_err(&client->dev, "failed to register master selector\n");
+ if (ret)
return ret;
- }
dev_info(&client->dev, "registered master selector for I2C %s\n",
client->name);