]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6e8ce424af462cf861a3833e86d1fed4fdce365
tree33114830c13095eb958f62ab58fa6acced3eff75
parent07e109360660cc58aefd754a4369fe475b61e495
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