diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-12-25 09:40:06 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-01-05 17:33:48 +0100 |
commit | 2478b9c1dcc9aa84cfd71ed7b5ca2a2c0ede75b7 (patch) | |
tree | 4c88e66c6b2297f1d065a50bddfad9426c4ab92b /drivers/i2c | |
parent | i2c: gpio: fix MODULE_LICENCE (diff) | |
download | linux-2478b9c1dcc9aa84cfd71ed7b5ca2a2c0ede75b7.tar.xz linux-2478b9c1dcc9aa84cfd71ed7b5ca2a2c0ede75b7.zip |
i2c: fix platform_get_irq.cocci warnings
Remove dev_err() messages after platform_get_irq*() failures.
drivers/i2c/busses/i2c-hix5hd2.c:417:2-9: line 417 is redundant
because platform_get_irq() already prints an error
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-hix5hd2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5hd2.c index ab15b1ec2ab3..c45f226c2b85 100644 --- a/drivers/i2c/busses/i2c-hix5hd2.c +++ b/drivers/i2c/busses/i2c-hix5hd2.c @@ -413,10 +413,8 @@ static int hix5hd2_i2c_probe(struct platform_device *pdev) return PTR_ERR(priv->regs); irq = platform_get_irq(pdev, 0); - if (irq <= 0) { - dev_err(&pdev->dev, "cannot find HS-I2C IRQ\n"); + if (irq <= 0) return irq; - } priv->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(priv->clk)) { |