diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-07-26 19:42:26 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2023-08-08 15:36:48 +0200 |
commit | f9372b9202a443051b9ed9b9cc34a79d44493e1a (patch) | |
tree | 908d85ff5bd33325b093c8c2b9f778e0fb7d432c /drivers/i2c/busses/i2c-s3c2410.c | |
parent | i2c: imx-lpi2c: directly return ISR when detect a NACK (diff) | |
download | linux-f9372b9202a443051b9ed9b9cc34a79d44493e1a.tar.xz linux-f9372b9202a443051b9ed9b9cc34a79d44493e1a.zip |
i2c: s3c2410: Remove redundant dev_err()
There is no need to call the dev_err() function directly to print a custom
message when handling an error from platform_get_irq() function as
it is going to display an appropriate error message in case of a failure.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230726174226.2480552-1-ruanjinjie@huawei.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-s3c2410.c')
-rw-r--r-- | drivers/i2c/busses/i2c-s3c2410.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 28f0e5c64f32..703a43446eaa 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -1076,7 +1076,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) if (!(i2c->quirks & QUIRK_POLL)) { i2c->irq = ret = platform_get_irq(pdev, 0); if (ret < 0) { - dev_err(&pdev->dev, "cannot find IRQ\n"); clk_unprepare(i2c->clk); return ret; } |