Skip to content

Commit b6f8a41

Browse files
krzkWim Van Sebroeck
authored andcommitted
watchdog: stm32: Fix wakeup source leaks on device unbind
Device can be unbound or probe can fail, so driver must also release memory for the wakeup source. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20250406203531.61322-1-krzysztof.kozlowski@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 13b5fb3 commit b6f8a41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/watchdog/stm32_iwdg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int stm32_iwdg_irq_init(struct platform_device *pdev,
291291
return 0;
292292

293293
if (of_property_read_bool(np, "wakeup-source")) {
294-
ret = device_init_wakeup(dev, true);
294+
ret = devm_device_init_wakeup(dev);
295295
if (ret)
296296
return ret;
297297

0 commit comments

Comments
 (0)