提交 9191546f 编写于 作者: U Uwe Kleine-König 提交者: Mark Brown

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: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 94c69f76
...@@ -478,6 +478,8 @@ static int efm32_spi_remove(struct platform_device *pdev) ...@@ -478,6 +478,8 @@ static int efm32_spi_remove(struct platform_device *pdev)
struct spi_master *master = platform_get_drvdata(pdev); struct spi_master *master = platform_get_drvdata(pdev);
struct efm32_spi_ddata *ddata = spi_master_get_devdata(master); struct efm32_spi_ddata *ddata = spi_master_get_devdata(master);
spi_bitbang_stop(&ddata->bitbang);
efm32_spi_write32(ddata, 0, REG_IEN); efm32_spi_write32(ddata, 0, REG_IEN);
free_irq(ddata->txirq, ddata); free_irq(ddata->txirq, ddata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册