i2c: uniphier{-f}: don't print error when adding adapter fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Tue, 9 Aug 2016 20:11:40 +0000 (22:11 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 22 Aug 2016 06:19:56 +0000 (08:19 +0200)
The core will do this for us now.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier-f.c
drivers/i2c/busses/i2c-uniphier.c

index aeead0d27d1007ead1ac78429aa9491c1613ae8d..35608531fe070dc544eba569230d072e74fec8a0 100644 (file)
@@ -550,11 +550,6 @@ static int uniphier_fi2c_probe(struct platform_device *pdev)
        }
 
        ret = i2c_add_adapter(&priv->adap);
-       if (ret) {
-               dev_err(dev, "failed to add I2C adapter\n");
-               goto err;
-       }
-
 err:
        if (ret)
                clk_disable_unprepare(priv->clk);
index 475a5eb514e2153fec01a55c294fd0930110cb6a..d6e612a0e02a9d75cbfdd16516ef32d0d2c92f83 100644 (file)
@@ -407,11 +407,6 @@ static int uniphier_i2c_probe(struct platform_device *pdev)
        }
 
        ret = i2c_add_adapter(&priv->adap);
-       if (ret) {
-               dev_err(dev, "failed to add I2C adapter\n");
-               goto err;
-       }
-
 err:
        if (ret)
                clk_disable_unprepare(priv->clk);