spi: spi-mxs: Fix the error path sequence
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 10 Jul 2013 03:16:27 +0000 (00:16 -0300)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:38:41 +0000 (11:38 +0100)
On mxs_spi_probe() the dma channels are requested prior to enabling the SSP
clock, so in the error path we should disable the SSP clock first and
release the DMA channels later.

Same logic applies in mxs_spi_remove().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c

Simple merge