diff options
| author | Alexandre Torgue <[email protected]> | 2025-03-06 10:25:01 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2025-03-07 16:55:59 +0000 |
| commit | 96bf4b89a6ab22426ad83ef76e66c72a5a8daca0 (patch) | |
| tree | 5fc52526e45b32911320c1cdae092310ef63f4b9 /drivers/clocksource/timer-stm32-lp.c | |
| parent | clocksource/drivers/exynos_mct: Fixed a spelling error (diff) | |
| download | kernel-96bf4b89a6ab22426ad83ef76e66c72a5a8daca0.tar.gz kernel-96bf4b89a6ab22426ad83ef76e66c72a5a8daca0.zip | |
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: 48b41c5e2de6 ("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]>
Diffstat (limited to 'drivers/clocksource/timer-stm32-lp.c')
| -rw-r--r-- | drivers/clocksource/timer-stm32-lp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clocksource/timer-stm32-lp.c b/drivers/clocksource/timer-stm32-lp.c index 9cd487dd5a3a..928da2f6de69 100644 --- a/drivers/clocksource/timer-stm32-lp.c +++ b/drivers/clocksource/timer-stm32-lp.c @@ -194,9 +194,7 @@ static int stm32_clkevent_lp_probe(struct platform_device *pdev) } if (of_property_read_bool(pdev->dev.parent->of_node, "wakeup-source")) { - ret = device_init_wakeup(&pdev->dev, true); - if (ret) - goto out_clk_disable; + device_set_wakeup_capable(&pdev->dev, true); ret = dev_pm_set_wake_irq(&pdev->dev, irq); if (ret) |
