rtc: nxp-bbnsm: Use resource managed API to simplify code
authorPeng Fan <peng.fan@nxp.com>
Wed, 5 Feb 2025 00:58:20 +0000 (08:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Mar 2025 21:52:29 +0000 (22:52 +0100)
commit6b296dee3eb703cd09f7944e35554713887cce7e
tree1344f63125ffcac59d18eeaf1261b82db99cdc6b
parent04572d18921d47939465d2cba32c19d05f27cda9
rtc: nxp-bbnsm: 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.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250205-rtc-cleanup-v1-2-66165678e089@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-nxp-bbnsm.c