Re: [PATCH] mfd: mc13xxx-core: Initialize the lock prior to using it

2014-04-15 Thread Russell King - ARM Linux
On Tue, Apr 15, 2014 at 07:43:10PM -0300, Fabio Estevam wrote: > From: 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 > warning. I'd suggest... "which will trigger

[PATCH] mfd: mc13xxx-core: Initialize the lock prior to using it

2014-04-15 Thread Fabio Estevam
From: 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 warning. In order to prevent that, move the initialization of 'mc13xxx->lock' prior to requesting the interrupts. Sugge