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)
commite11933f626c0a1333ec118d35a0c6c90d576b707
tree33114830c13095eb958f62ab58fa6acced3eff75
parentad81f0545ef01ea651886dddac4bef6cec930092
spi: spi-mxs: Fix the error path sequence

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
This page took 0.025502 seconds and 5 git commands to generate.