-
由 Fabio Estevam 提交于
After request_threaded_irq() is called there is a chance that an interrupt may occur before the 'mc13xxx->lock' is initialized, which will trigger a kernel oops. In order to prevent that, move the initialization of 'mc13xxx->lock' prior to requesting the interrupts. Suggested-by: NRussell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: NLee Jones <lee.jones@linaro.org>
48ca9a52