Fabio Estevam f91346e8b5 mmc: mxs: Initialize the spinlock prior to using it
An interrupt may occur right after devm_request_irq() is called and
prior to the spinlock initialization, leading to a kernel oops,
as the interrupt handler uses the spinlock.

In order to prevent this problem, move the spinlock initialization
prior to requesting the interrupts.

Fixes: e4243f13d10e (mmc: mxs-mmc: add mmc host driver for i.MX23/28)
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2016-11-07 13:30:08 +01:00
..
2012-11-28 12:28:18 -08:00
2016-07-18 11:50:40 +02:00
2014-09-24 10:13:09 +02:00
2016-09-26 21:31:33 +02:00
2015-06-01 09:06:48 +02:00
2016-09-26 21:31:33 +02:00
2015-10-26 15:59:53 +01:00
2015-03-23 14:13:49 +01:00