diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-15 21:57:34 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-05-22 17:08:13 +0200 |
commit | 79f7ab3a64fd92b86ebc992b333815400942a3b7 (patch) | |
tree | 5880398780438c7b37b908a8748d03bf8d3314ca /drivers/i2c | |
parent | 2ea81c0064fe2bbf7c66d3ddeb9f5c5ba0befdc4 (diff) |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-efm32.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c index 18cca8f56da8..9d28de0e8723 100644 --- a/drivers/i2c/busses/i2c-efm32.c +++ b/drivers/i2c/busses/i2c-efm32.c @@ -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; |