summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorAlexandre Torgue <alexandre.torgue@foss.st.com>2025-03-06 11:25:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-20 10:15:39 +0200
commit9d6b789a8ff95d4fc4df389f4c57693b11c3f5c8 (patch)
tree28b23f0b08e51ec4c09e3722df0e75bb45f95ac6 /drivers/clocksource
parent9d99358349e4600601dc2dae5f6fe349e744564c (diff)
downloadlinux-9d6b789a8ff95d4fc4df389f4c57693b11c3f5c8.tar.gz
linux-9d6b789a8ff95d4fc4df389f4c57693b11c3f5c8.tar.bz2
linux-9d6b789a8ff95d4fc4df389f4c57693b11c3f5c8.zip
clocksource/drivers/stm32-lptimer: Use wakeup capable instead of init wakeup
commit 96bf4b89a6ab22426ad83ef76e66c72a5a8daca0 upstream. "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: stable@vger.kernel.org Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Rule: add Link: https://lore.kernel.org/stable/20250306083407.2374894-1-fabrice.gasnier%40foss.st.com Link: https://lore.kernel.org/r/20250306102501.2980153-1-fabrice.gasnier@foss.st.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-stm32-lp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clocksource/timer-stm32-lp.c b/drivers/clocksource/timer-stm32-lp.c
index a4c95161cb22..193e4f643358 100644
--- a/drivers/clocksource/timer-stm32-lp.c
+++ b/drivers/clocksource/timer-stm32-lp.c
@@ -168,9 +168,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)