diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-03-18 18:07:48 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-21 19:55:03 +0100 |
commit | 3e566bee7f89de19727293c3ef1803b43c948d15 (patch) | |
tree | 6820536700f959a0c6f84e6c17463e39286fad06 /drivers | |
parent | 24d3fdc8f24e7812e77e7928b622940faf2a6b13 (diff) |
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')
-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); |