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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 13b5fb3 commit b6f8a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)