mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
watchdog: dw_wdt: Propagate errors from optional IRQ lookup
platform_get_irq_optional() returns a positive IRQ number on success or a negative error code on failure. For an optional IRQ, -ENXIO indicates that no IRQ is available, while other errors should be propagated. Instead of only checking for -EPROBE_DEFER, propagate all error codes returned by platform_get_irq_optional() other than -ENXIO, so that failures are properly reported to the caller. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://lore.kernel.org/r/20260807081652.38692-3-phucduc.bui@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
7528abb515
commit
ac4bf51d4d
|
|
@ -611,7 +611,7 @@ static int dw_wdt_drv_probe(struct platform_device *pdev)
|
|||
|
||||
dw_wdt->wdd.info = &dw_wdt_pt_ident;
|
||||
} else {
|
||||
if (ret == -EPROBE_DEFER)
|
||||
if (ret != -ENXIO)
|
||||
return ret;
|
||||
|
||||
dw_wdt->wdd.info = &dw_wdt_ident;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user