提交 05209f45 编写于 作者: W Wei Yongjun 提交者: Mark Brown

spi: fsl-dspi: add missing clk_disable_unprepare() in dspi_remove()

clock source is prepared and enabled by clk_prepare_enable()
in probe function, but no disable or unprepare in remove.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 b444d1df
...@@ -536,6 +536,7 @@ static int dspi_remove(struct platform_device *pdev) ...@@ -536,6 +536,7 @@ static int dspi_remove(struct platform_device *pdev)
/* Disconnect from the SPI framework */ /* Disconnect from the SPI framework */
spi_bitbang_stop(&dspi->bitbang); spi_bitbang_stop(&dspi->bitbang);
clk_disable_unprepare(dspi->clk);
spi_master_put(dspi->bitbang.master); spi_master_put(dspi->bitbang.master);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册