Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9191546f authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 94c69f76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);