]> git.baikalelectronics.ru Git - kernel.git/commitdiff
i2c: mux: pca9541: stop double error reporting
authorPeter Rosin <peda@axentia.se>
Mon, 3 Apr 2017 08:14:19 +0000 (10:14 +0200)
committerPeter Rosin <peda@axentia.se>
Mon, 3 Apr 2017 12:07:33 +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-pca9541.c

index 77840f7845a1ba3117f66d815696b4fdce68f2b3..9e318c9516c767b41e872d966d425699c51b0b04 100644 (file)
@@ -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);