1
0
Fork 0

i2c: efm32: Omit superfluous error message in efm32_i2c_probe()

In the function efm32_i2c_probe(),when get irq failed,the function
platform_get_irq() logs an error message,so remove redundant message
here.

Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
alistair/sunxi64-5.8
Tang Bin 2020-04-15 21:57:34 +08:00 committed by Wolfram Sang
parent 2ea81c0064
commit 79f7ab3a64
1 changed files with 0 additions and 1 deletions

View File

@ -352,7 +352,6 @@ static int efm32_i2c_probe(struct platform_device *pdev)
ret = platform_get_irq(pdev, 0);
if (ret <= 0) {
dev_err(&pdev->dev, "failed to get irq (%d)\n", ret);
if (!ret)
ret = -EINVAL;
return ret;