diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-09-10 07:51:30 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-17 11:56:20 (GMT) |
commit | 9191546f69ddefe66e46bbe9ba8d1872bc226553 (patch) | |
tree | 5be7a7f35037a93ba3b698837d1e7153ad53808a /drivers/spi/spi-efm32.c | |
parent | 94c69f765f1b4a658d96905ec59928e3e3e07e6a (diff) | |
download | linux-fsl-qoriq-9191546f69ddefe66e46bbe9ba8d1872bc226553.tar.xz |
spi: efm32: add spi_bitbang_stop to device remove callback
This call is needed to cleanup the resources requested by
spi_bitbang_start in the probe callback.
Noticed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-efm32.c')
-rw-r--r-- | drivers/spi/spi-efm32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c index d428a40..18659fc 100644 --- a/drivers/spi/spi-efm32.c +++ b/drivers/spi/spi-efm32.c @@ -478,6 +478,8 @@ static int efm32_spi_remove(struct platform_device *pdev) struct spi_master *master = platform_get_drvdata(pdev); struct efm32_spi_ddata *ddata = spi_master_get_devdata(master); + spi_bitbang_stop(&ddata->bitbang); + efm32_spi_write32(ddata, 0, REG_IEN); free_irq(ddata->txirq, ddata); |