i2c: efm32: Omit superfluous error message in efm32_i2c_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 15 Apr 2020 13:57:34 +0000 (21:57 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 May 2020 15:08:13 +0000 (17:08 +0200)
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>
drivers/i2c/busses/i2c-efm32.c

index 18cca8f..9d28de0 100644 (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;