watchdog: sama5d4: Remove redundant dev_err()

Since commit
55b48e23f5 ("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() call.

Signed-off-by: Pan Chuang <panchuang@vivo.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20260722084218.79073-9-panchuang@vivo.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Pan Chuang 2026-07-22 16:42:16 +08:00 committed by Guenter Roeck
parent d7c4cef982
commit 0e2d63f85a

View File

@ -291,10 +291,8 @@ static int sama5d4_wdt_probe(struct platform_device *pdev)
ret = devm_request_irq(dev, irq, sama5d4_wdt_irq_handler,
IRQF_SHARED | IRQF_IRQPOLL |
IRQF_NO_SUSPEND, pdev->name, pdev);
if (ret) {
dev_err(dev, "cannot register interrupt handler\n");
if (ret)
return ret;
}
}
watchdog_init_timeout(wdd, wdt_timeout, dev);