[media] exynos4-is: fimc-is-i2c: don't print error when adding adapter fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Tue, 9 Aug 2016 11:35:15 +0000 (08:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 16:37:35 +0000 (13:37 -0300)
The core will do this for us now.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-is-i2c.c

index 7521aa59b0649c1318455d1919286698c9111fb8..fd888ef447a9032aed5e7f48477a85e1b23dea31 100644 (file)
@@ -56,11 +56,8 @@ static int fimc_is_i2c_probe(struct platform_device *pdev)
        i2c_adap->class = I2C_CLASS_SPD;
 
        ret = i2c_add_adapter(i2c_adap);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "failed to add I2C bus %s\n",
-                                               node->full_name);
+       if (ret < 0)
                return ret;
-       }
 
        platform_set_drvdata(pdev, isp_i2c);