mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
watchdog: sprd: 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>
Link: https://lore.kernel.org/r/20260722084218.79073-10-panchuang@vivo.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
0e2d63f85a
commit
7aa968415c
|
|
@ -293,10 +293,8 @@ static int sprd_wdt_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_request_irq(dev, wdt->irq, sprd_wdt_isr, IRQF_NO_SUSPEND,
|
||||
"sprd-wdt", (void *)wdt);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to register irq\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
wdt->wdd.info = &sprd_wdt_info;
|
||||
wdt->wdd.ops = &sprd_wdt_ops;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user