Commit db7673e6 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Wim Van Sebroeck

Watchdog: marvell_gti_wdt: Remove redundant dev_err_probe() for platform_get_irq()

Since commit 7723f4c5 ("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: ef9e7fe2 ("Watchdog: Add marvell GTI watchdog driver")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230901070929.1317982-1-ruanjinjie@huawei.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 15f0f6d2
...@@ -308,7 +308,7 @@ static int gti_wdt_probe(struct platform_device *pdev) ...@@ -308,7 +308,7 @@ static int gti_wdt_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 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, err = devm_request_irq(dev, irq, gti_wdt_interrupt, 0,
pdev->name, &priv->wdev); pdev->name, &priv->wdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment