power: charge animation: disable timer while uninit timer
Otherwise the time is still working in kernel if there is no one to update it, which always wakeups system suspend. Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic2291b26730557c50fb8cbd505d05b40bb582c74
This commit is contained in:
parent
cd44409e4e
commit
094465a906
|
|
@ -283,6 +283,9 @@ static void autowakeup_timer_init(struct udevice *dev, uint32_t seconds)
|
|||
|
||||
static void autowakeup_timer_uninit(void)
|
||||
{
|
||||
writel(0, TIMER_BASE + TIMER_CTRL);
|
||||
|
||||
irq_handler_disable(TIMER_IRQ);
|
||||
irq_free_handler(TIMER_IRQ);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue