Skip to contentSkip to conversation

i2c: uniphier{-f}: don't print error when adding adapter fails

PATCH Applied Wolfram Sang 4 participants 4 messages Aug 9, 2016 – Aug 14, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: uniphier{-f}: don't print error when adding adapter fails

The core will do this for us now.

---
 drivers/i2c/busses/i2c-uniphier-f.c | 5 -----
 drivers/i2c/busses/i2c-uniphier.c   | 5 -----
 2 files changed, 10 deletions(-)
drivers/i2c/busses/i2c-uniphier-f.c +0 -5
index aeead0d27d1007..35608531fe070d 100644
@@ -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);
drivers/i2c/busses/i2c-uniphier.c +0 -5
index 475a5eb514e215..d6e612a0e02a9d 100644
@@ -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);
Signature · 1 line
2.8.1
Acked-by on v1 1/1
#1 lore raw

2016-08-10 5:11 GMT+09:00 Wolfram Sang <[email protected]>:

Quoted 30 lines

The core will do this for us now.

---
 drivers/i2c/busses/i2c-uniphier-f.c | 5 -----
 drivers/i2c/busses/i2c-uniphier.c   | 5 -----
 2 files changed, 10 deletions(-)
drivers/i2c/busses/i2c-uniphier-f.c +0 -5
index aeead0d27d1007..35608531fe070d 100644
@@ -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);
drivers/i2c/busses/i2c-uniphier.c +0 -0
index 475a5eb514e215..d6e612a0e02a9d 100644
@@ -407,11 +407,6 @@ static int uniphier_i2c_probe(struct platform_device *pdev)
        }

drivers/i2c/busses/i2c-uniphier.c static int uniphier_i2c_probe(struct platform_device *pdev) · line 412

Quoted 10 lines
drivers/i2c/busses/i2c-uniphier.c +0 -5
 
        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);

This version looks good to me. :)

(Please make sure to squash this and the other big one into a single patch.)

Signature · 2 lines
Best Regards
Masahiro Yamada
Acked-by on v1 1/1
#2 lore raw
In reply to Wolfram Sang
Quoted 3 lines · Wolfram Sang

The core will do this for us now.

Quoted 40 lines
---
 drivers/i2c/busses/i2c-uniphier-f.c | 5 -----
 drivers/i2c/busses/i2c-uniphier.c   | 5 -----
 2 files changed, 10 deletions(-)
drivers/i2c/busses/i2c-uniphier-f.c +0 -5
index aeead0d27d1007..35608531fe070d 100644
@@ -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);
drivers/i2c/busses/i2c-uniphier.c +0 -5
index 475a5eb514e215..d6e612a0e02a9d 100644
@@ -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);
Signature · 1 line
2.8.1