Message ID | 20201101171807.8182-1-martin@kaiser.cx |
---|---|
State | Accepted |
Headers | show |
Series | [v2,1/3] i2c: exynos5: remove duplicate error message | expand |
On Sun, Nov 01, 2020 at 06:18:05PM +0100, Martin Kaiser wrote: > platform_get_irq already prints an error message if the requested irq > was not found. Don't print another message in the driver. > > Signed-off-by: Martin Kaiser <martin@kaiser.cx> > --- > changes in v2 > - split the patch in three parts > > drivers/i2c/busses/i2c-exynos5.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Best regards, Krzysztof
diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 6ce3ec03b595..c5f5fb28762d 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -779,7 +779,6 @@ static int exynos5_i2c_probe(struct platform_device *pdev) i2c->irq = ret = platform_get_irq(pdev, 0); if (ret <= 0) { - dev_err(&pdev->dev, "cannot find HS-I2C IRQ\n"); ret = -EINVAL; goto err_clk; }
platform_get_irq already prints an error message if the requested irq was not found. Don't print another message in the driver. Signed-off-by: Martin Kaiser <martin@kaiser.cx> --- changes in v2 - split the patch in three parts drivers/i2c/busses/i2c-exynos5.c | 1 - 1 file changed, 1 deletion(-)