Commit 79f7ab3a authored by Tang Bin's avatar Tang Bin Committed by Wolfram Sang
Browse files

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: default avatarShengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 2ea81c00
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;