ARM: samsung: Omit superfluous error message in s3c_adc_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Sun, 19 Apr 2020 07:05:41 +0000 (15:05 +0800)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 21 Apr 2020 09:35:00 +0000 (11:35 +0200)
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>
arch/arm/plat-samsung/adc.c

index 4f7b272..839bf7d 100644 (file)
@@ -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);