mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:04 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8bfd4f7f18050535892b74e6ec3aa2ca598c6a64
Commit: 8bfd4f7f18050535892b74e6ec3aa2ca598c6a64
Parent: 0d681560176ef94b6b2aaa39e3e935662cffc6e6
Author: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
AuthorDate: Tue Dec 17 11:35:35 2013 +0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:24 2014 -0800
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: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/mxc_nand.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 7a4e032..567a5e5 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1577,6 +1577,8 @@ static int mxcnd_remove(struct platform_device *pdev)
struct mxc_nand_host *host = platform_get_drvdata(pdev);
nand_release(&host->mtd);
+ if (host->clk_act)
+ clk_disable_unprepare(host->clk);
return 0;
}
More information about the linux-mtd-cvs
mailing list