summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-11-02 18:21:04 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-11-07 14:48:40 +0100
commita1a261707b51d728d0c2b4c32630bc43a8eb33b2 (patch)
treef4e6def2949c5c844ba80905049054597cbd94d7 /drivers/mtd
parentmtd: nand: add tango NAND flash controller support (diff)
downloadlinux-a1a261707b51d728d0c2b4c32630bc43a8eb33b2.tar.xz
linux-a1a261707b51d728d0c2b4c32630bc43a8eb33b2.zip
mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare()
The denali_dt_probe() calls clk_disable_unprepare() in the bailout path, whereas denali_dt_remove calls clk_disable(), inconsistently. Replace the latter with clk_disable_unprepare() to make sure to unprepare the clock. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali_dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
index 0cb1e8d9fbfc..f821dc1c5739 100644
--- a/drivers/mtd/nand/denali_dt.c
+++ b/drivers/mtd/nand/denali_dt.c
@@ -110,7 +110,7 @@ static int denali_dt_remove(struct platform_device *ofdev)
struct denali_dt *dt = platform_get_drvdata(ofdev);
denali_remove(&dt->denali);
- clk_disable(dt->clk);
+ clk_disable_unprepare(dt->clk);
return 0;
}