projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d68156
)
mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 17 Dec 2013 03:35:35 +0000
(11:35 +0800)
committer
Brian Norris
<computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:24 +0000
(11:22 -0800)
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@trendmicro.com.cn>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index 7a4e032f6c7cb17c0b7514fc7d2b3f8d49198e8d..567a5e56660c34e25e0c50a14e450c37986fd3f1 100644
(file)
--- 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;
}