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

index 86fc2d4c081b2eb4f265d7d69cd485d9ca9ec120..812b8cff265fd1be1694ec25ac0dc1d5a908c705 100644 (file)
@@ -202,10 +202,8 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
 
        /* Actually add the mux adapter */
        ret = i2c_mux_add_adapter(muxc, 0, 0, 0);
-       if (ret) {
-               dev_err(dev, "Failed to add adapter\n");
+       if (ret)
                i2c_put_adapter(muxc->parent);
-       }
 
        return ret;
 }