mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
watchdog: orion: 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() 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>
This commit is contained in:
parent
c19929a8d8
commit
329b7e841f
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user