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

index 35bb775e1b7423f77355f670b4959219f44897eb..7c0c264b07bc5c47b8864d7ea9105d91138fef73 100644 (file)
@@ -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;