rtc: bbnsm: add remove hook
authorPeng Fan <peng.fan@nxp.com>
Mon, 11 Nov 2024 07:11:30 +0000 (15:11 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 Nov 2024 10:47:58 +0000 (11:47 +0100)
commit60f0108bccc8382ef131b6c4c9a8c0c5644fffd3
tree08cbc5af68e32cff47fe284c879e0cde964fc010
parent5a36826a5909fb8136d28153f46e8291aa719959
rtc: bbnsm: add remove hook

Without remove hook to clear wake irq, there will be kernel dump when
doing module test.
"bbnsm_rtc 44440000.bbnsm:rtc: wake irq already initialized"

Add remove hook to clear wake irq and set wakeup to false.

Fixes: eb7b85853c38 ("rtc: bbnsm: Add the bbnsm rtc support")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20241111071130.1099978-1-peng.fan@oss.nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-nxp-bbnsm.c