rtc: pm8xxx: Use devm_pm_set_wake_irq
authorPeng Fan <peng.fan@nxp.com>
Wed, 5 Feb 2025 00:58:22 +0000 (08:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Mar 2025 21:52:29 +0000 (22:52 +0100)
commite8a0b6e62429f5675d37a02be5169de8453a08be
treecc2d5bc0d83615ac9410005cdcba134d48b5e1c2
parent5ad218f101e4f6c2698977d267e137ddb6655051
rtc: pm8xxx: Use devm_pm_set_wake_irq

Use devm_pm_set_wake_irq, then the 'driver.remove()' could be cleaned up.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250205-rtc-cleanup-v1-4-66165678e089@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pm8xxx.c