Skip to content

Commit db7673e

Browse files
Jinjie RuanWim Van Sebroeck
authored andcommitted
Watchdog: marvell_gti_wdt: Remove redundant dev_err_probe() for platform_get_irq()
Since commit 7723f4c ("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: ef9e7fe ("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>
1 parent 15f0f6d commit db7673e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/marvell_gti_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static int gti_wdt_probe(struct platform_device *pdev)
308308

309309
irq = platform_get_irq(pdev, 0);
310310
if (irq < 0)
311-
return dev_err_probe(&pdev->dev, irq, "IRQ resource not found\n");
311+
return irq;
312312

313313
err = devm_request_irq(dev, irq, gti_wdt_interrupt, 0,
314314
pdev->name, &priv->wdev);

0 commit comments

Comments
 (0)