From: Uwe Kleine-König Date: Tue, 10 Sep 2013 07:51:30 +0000 (+0200) Subject: spi: efm32: add spi_bitbang_stop to device remove callback X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9191546f69ddefe66e46bbe9ba8d1872bc226553;p=linux-beck.git 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 Signed-off-by: Uwe Kleine-König Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c index d428a40778c1..18659fc6bef2 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);