summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-22 16:42:14 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-08-10 09:00:04 -0700
commit329b7e841fea0410dcfcd76acdc10687f41caf4f (patch)
treee547bdde0f3a12e26247c5722f9e83ccc317dde7 /drivers
parentc19929a8d8d9612373009513754fbc20b7ef7f0f (diff)
downloadlinux-329b7e841fea0410dcfcd76acdc10687f41caf4f.tar.gz
linux-329b7e841fea0410dcfcd76acdc10687f41caf4f.zip
watchdog: orion: Remove redundant dev_err()
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"), devm_request_irq() automatically logs detailed error messages on failure. Remove the now-redundant driver-specific dev_err() calls. Signed-off-by: Pan Chuang <panchuang@vivo.com> Link: https://lore.kernel.org/r/20260722084218.79073-7-panchuang@vivo.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/orion_wdt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
index 0e145f762f6f..1802634cc7cd 100644
--- a/drivers/watchdog/orion_wdt.c
+++ b/drivers/watchdog/orion_wdt.c
@@ -613,10 +613,8 @@ static int orion_wdt_probe(struct platform_device *pdev)
*/
ret = devm_request_irq(&pdev->dev, irq, orion_wdt_irq, 0,
pdev->name, dev);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to request IRQ\n");
+ if (ret < 0)
goto disable_clk;
- }
}
/* Optional 2nd interrupt for pretimeout */
@@ -625,10 +623,8 @@ static int orion_wdt_probe(struct platform_device *pdev)
orion_wdt_info.options |= WDIOF_PRETIMEOUT;
ret = devm_request_irq(&pdev->dev, irq, orion_wdt_pre_irq,
0, pdev->name, dev);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to request IRQ\n");
+ if (ret < 0)
goto disable_clk;
- }
}