diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-09-10 09:51:30 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-07 14:51:24 +0100 |
commit | e6f7563b7354c2eb26d89b8622b3582a4c6510d8 (patch) | |
tree | 9baf64af40deb35dc3e9b87612fca59693312d8a /drivers/spi/spi-efm32.c | |
parent | 77445a14d6a3a1f920e3b031603541fc807f5f9b (diff) |
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 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); |