summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-08-11 15:19:34 +0300
committerLee Jones <lee.jones@linaro.org>2021-08-16 16:03:22 +0300
commitbc239d8d6dd927af1df3fa3984ccf5f531d1be54 (patch)
tree912eb372db0878c5b44e1eb720402ed4df3f8589
parent9a8c4bace04a61efbcce4bd44ffa8b86b03ffdfe (diff)
downloadlinux-bc239d8d6dd927af1df3fa3984ccf5f531d1be54.tar.xz
mfd: ti_am335x_tscadc: Delete superfluous error message
In the function ti_tscadc_probe(), when get irq failed, platform_get_irq() logs an error message, so remove redundant message here. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/ti_am335x_tscadc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index 0e6e25308190..55adc379f94b 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -175,10 +175,9 @@ static int ti_tscadc_probe(struct platform_device *pdev)
tscadc->dev = &pdev->dev;
err = platform_get_irq(pdev, 0);
- if (err < 0) {
- dev_err(&pdev->dev, "no irq ID is specified.\n");
+ if (err < 0)
goto ret;
- } else
+ else
tscadc->irq = err;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);