Thread (20 messages) 20 messages, 17 authors, 2016-10-05

Re: [PATCH] i2c: don't print error when adding adapter fails

From: Heiko Stübner <heiko@sntech.de>
Date: 2016-08-09 12:15:00
Also in: linux-amlogic, linux-i2c, linux-omap, linux-rockchip, linux-samsung-soc, linux-tegra, lkml

Am Dienstag, 9. August 2016, 13:36:17 schrieb Wolfram Sang:
The core will do this for us now.

Signed-off-by: Wolfram Sang <redacted>
---
[...]
quoted hunk ↗ jump to hunk
diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c
index 2bc8b01153d619..3b87afe82f6394 100644
--- a/drivers/i2c/busses/i2c-rk3x.c
+++ b/drivers/i2c/busses/i2c-rk3x.c
@@ -1303,10 +1303,8 @@ static int rk3x_i2c_probe(struct platform_device
*pdev) rk3x_i2c_adapt_div(i2c, clk_rate);

 	ret = i2c_add_adapter(&i2c->adap);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "Could not register adapter\n");
+	if (ret < 0)
 		goto err_clk_notifier;
-	}

 	dev_info(&pdev->dev, "Initialized RK3xxx I2C bus at %p\n", i2c->regs);
for Rockchip
Acked-by: Heiko Stuebner <heiko@sntech.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help