i2c: uniphier{-f}: don't print error when adding adapter fails
Subsystems (2)
PATCH 1/1 i2c: uniphier{-f}: don't print error when adding adapter fails
The core will do this for us now.
Signed-off-by Wolfram Sang <[email protected]>
--- 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
@@ -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
@@ -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
2016-08-10 5:11 GMT+09:00 Wolfram Sang <[email protected]>:
Quoted 30 lines
The core will do this for us now.
Signed-off-by Wolfram Sang <[email protected]>--- 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@@ -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@@ -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
-5ret =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. :)
Acked-by Masahiro Yamada <[email protected]>
(Please make sure to squash this and the other big one into a single patch.)
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 3 lines · Wolfram Sang
The core will do this for us now.
Signed-off-by Wolfram Sang <[email protected]>
Acked-by Guenter Roeck <[email protected]>
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@@ -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@@ -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
Wolfram Sang
AppliedQuoted 3 lines · Wolfram Sang
The core will do this for us now.
Signed-off-by Wolfram Sang <[email protected]>
Applied to for-next, thanks!