Skip to content

Commit 96bf4b8

Browse files
Alexandre Torguedlezcano
authored andcommitted
clocksource/drivers/stm32-lptimer: Use wakeup capable instead of init wakeup
"wakeup-source" property describes a device which has wakeup capability but should not force this device as a wakeup source. Fixes: 48b41c5 ("clocksource: Add Low Power STM32 timers driver") Cc: [email protected] Signed-off-by: Alexandre Torgue <[email protected]> Signed-off-by: Fabrice Gasnier <[email protected]> Rule: add Link: https://lore.kernel.org/stable/20250306083407.2374894-1-fabrice.gasnier%40foss.st.com Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 7e1e4e6 commit 96bf4b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clocksource/timer-stm32-lp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ static int stm32_clkevent_lp_probe(struct platform_device *pdev)
194194
}
195195

196196
if (of_property_read_bool(pdev->dev.parent->of_node, "wakeup-source")) {
197-
ret = device_init_wakeup(&pdev->dev, true);
198-
if (ret)
199-
goto out_clk_disable;
197+
device_set_wakeup_capable(&pdev->dev, true);
200198

201199
ret = dev_pm_set_wake_irq(&pdev->dev, irq);
202200
if (ret)

0 commit comments

Comments
 (0)