summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-efm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2013-09-10 09:51:30 +0200
committerMark Brown <broonie@linaro.org>2013-10-07 14:51:24 +0100
commite6f7563b7354c2eb26d89b8622b3582a4c6510d8 (patch)
tree9baf64af40deb35dc3e9b87612fca59693312d8a /drivers/spi/spi-efm32.c
parent77445a14d6a3a1f920e3b031603541fc807f5f9b (diff)
downloadlinux-e6f7563b7354c2eb26d89b8622b3582a4c6510d8.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c
index 34ef44c77e8e..5ce61e5f9770 100644
--- a/drivers/spi/spi-efm32.c
+++ b/drivers/spi/spi-efm32.c
@@ -477,6 +477,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);