mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
2ea81c0064
commit
79f7ab3a64
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue