From: Stephen Boyd Date: Tue, 30 Jul 2019 18:15:12 +0000 (-0700) Subject: extcon: adc-jack: Remove dev_err() usage after platform_get_irq() X-Git-Tag: v5.15~5508^2~50^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3fc5723397703a56fb6083b3e2f2ac601d1dfe0;p=platform%2Fkernel%2Flinux-starfive.git extcon: adc-jack: Remove dev_err() usage after platform_get_irq() We don't need dev_err() messages when platform_get_irq() fails now that platform_get_irq() prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch. Signed-off-by: Stephen Boyd [cw00.choi: Edit patch title and description for readability] Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c index ee9b5f7..ad02dc67 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c @@ -140,10 +140,8 @@ static int adc_jack_probe(struct platform_device *pdev) return err; data->irq = platform_get_irq(pdev, 0); - if (data->irq < 0) { - dev_err(&pdev->dev, "platform_get_irq failed\n"); + if (data->irq < 0) return -ENODEV; - } err = request_any_context_irq(data->irq, adc_jack_irq_thread, pdata->irq_flags, pdata->name, data);