diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-17 07:35:35 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 23:22:24 +0400 |
commit | 8bfd4f7f18050535892b74e6ec3aa2ca598c6a64 (patch) | |
tree | c3c550f9abbe9861d15c16ad0a63af0de2e2dba8 /drivers/mtd | |
parent | 0d681560176ef94b6b2aaa39e3e935662cffc6e6 (diff) | |
download | linux-8bfd4f7f18050535892b74e6ec3aa2ca598c6a64.tar.xz |
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@trendmicro.com.cn>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 7a4e032f6c7c..567a5e56660c 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; } |