Watchdog: marvell_gti_wdt: Remove redundant dev_err_probe() for platform_get_irq()
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 1 Sep 2023 07:09:29 +0000 (15:09 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 11 Oct 2023 16:53:34 +0000 (18:53 +0200)
Since commit 7723f4c5ecdb ("driver core: platform: Add an error message
to platform_get_irq*()"), there is no need to call the dev_err_probe()
function directly to print a custom message when handling an error
from platform_get_irq() function as it is going to display an appropriate
error message in case of a failure.

Fixes: ef9e7fe2c890 ("Watchdog: Add marvell GTI watchdog driver")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230901070929.1317982-1-ruanjinjie@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/marvell_gti_wdt.c

index d7eb8286e11eca75006f5468a1f9b45c1214db67..d5a1ff91d4233567a64ec4da50f2006834829128 100644 (file)
@@ -308,7 +308,7 @@ static int gti_wdt_probe(struct platform_device *pdev)
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0)
-               return dev_err_probe(&pdev->dev, irq, "IRQ resource not found\n");
+               return irq;
 
        err = devm_request_irq(dev, irq, gti_wdt_interrupt, 0,
                               pdev->name, &priv->wdev);