diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-03-18 13:07:48 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-21 21:55:03 +0300 |
commit | 3e566bee7f89de19727293c3ef1803b43c948d15 (patch) | |
tree | 6820536700f959a0c6f84e6c17463e39286fad06 /drivers/i2c | |
parent | 24d3fdc8f24e7812e77e7928b622940faf2a6b13 (diff) | |
download | linux-3e566bee7f89de19727293c3ef1803b43c948d15.tar.xz |
i2c: imx: remove duplicate print after platform_get_irq()
We don't need dev_err() message because when something goes wrong,
platform_get_irq() has print an error message itself, so we should
remove duplicate dev_err().
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 79d5b37fd8a1..775805616ba3 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -1130,10 +1130,8 @@ static int i2c_imx_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "<%s>\n", __func__); irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "can't get irq number\n"); + if (irq < 0) return irq; - } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_ioremap_resource(&pdev->dev, res); |