Commit 8bfd4f7f authored by Wei Yongjun's avatar Wei Yongjun Committed by Brian Norris

mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove()

clock source is prepared and enabled by clk_prepare_enable() in
mxcnd_probe() function, but no disable/unprepare in mxcnd_remove().
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 0d681560
...@@ -1577,6 +1577,8 @@ static int mxcnd_remove(struct platform_device *pdev) ...@@ -1577,6 +1577,8 @@ static int mxcnd_remove(struct platform_device *pdev)
struct mxc_nand_host *host = platform_get_drvdata(pdev); struct mxc_nand_host *host = platform_get_drvdata(pdev);
nand_release(&host->mtd); nand_release(&host->mtd);
if (host->clk_act)
clk_disable_unprepare(host->clk);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment