]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: stm32: Use resource managed API to simplify code
authorPeng Fan <peng.fan@nxp.com>
Wed, 5 Feb 2025 00:58:19 +0000 (08:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Mar 2025 21:52:29 +0000 (22:52 +0100)
commit04572d18921d47939465d2cba32c19d05f27cda9
treedd74397fcb8979dd62eaff6b2aea74dd88e3ce73
parent72ce39bc61fab14ef8eda1614763d6422ce38736
rtc: stm32: Use resource managed API to simplify code

Use devm_pm_set_wake_irq and devm_device_init_wakeup to cleanup the
error handling code and 'driver.remove()' hook.

Reviewed-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250205-rtc-cleanup-v1-1-66165678e089@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c