summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/adc.c
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2020-04-19 09:05:41 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-04-21 11:35:00 +0200
commitee9a71ad25549d28c26542d93270071e9a269408 (patch)
tree89b28dded9c4e0fce099b0581f178c8e596a5341 /arch/arm/plat-samsung/adc.c
parentARM: s3c64xx: convert to use i2c_new_client_device() (diff)
downloadlinux-ee9a71ad25549d28c26542d93270071e9a269408.tar.xz
linux-ee9a71ad25549d28c26542d93270071e9a269408.zip
ARM: samsung: Omit superfluous error message in s3c_adc_probe()
In the function s3c_adc_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> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'arch/arm/plat-samsung/adc.c')
-rw-r--r--arch/arm/plat-samsung/adc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c
index 4f7b27239bd4..839bf7d5fee0 100644
--- a/arch/arm/plat-samsung/adc.c
+++ b/arch/arm/plat-samsung/adc.c
@@ -354,10 +354,8 @@ static int s3c_adc_probe(struct platform_device *pdev)
}
adc->irq = platform_get_irq(pdev, 1);
- if (adc->irq <= 0) {
- dev_err(dev, "failed to get adc irq\n");
+ if (adc->irq <= 0)
return -ENOENT;
- }
ret = devm_request_irq(dev, adc->irq, s3c_adc_irq, 0, dev_name(dev),
adc);