mfd: rtsx_pcr: Disable interrupts before cancelling delayed works
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Dec 2013 11:20:36 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:28:52 +0000 (15:28 -0800)
commit033795785f03230ca660a37a428db3ab096dd659
treefdd55cc1b7bdf379e7e9002629a8d11eeedee86a
parent94f8884551dac1e358bc4a7a90d9442998261a3e
mfd: rtsx_pcr: Disable interrupts before cancelling delayed works

commit 73beb63d290f961c299526852884846b0d868840 upstream.

This fixes a kernel panic when resuming from suspend to RAM.
Without this fix an interrupt hits after the delayed work is canceled
and thus requeues it. So we end up freeing an armed timer.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/rtsx_pcr.c