diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-11-03 02:21:04 +0900 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-11-07 14:48:40 +0100 |
commit | a1a261707b51d728d0c2b4c32630bc43a8eb33b2 (patch) | |
tree | f4e6def2949c5c844ba80905049054597cbd94d7 /drivers/mtd/nand/denali_dt.c | |
parent | 6956e2385a16175ca350e199f9c760eb1644d5bf (diff) | |
download | op-kernel-dev-a1a261707b51d728d0c2b4c32630bc43a8eb33b2.zip op-kernel-dev-a1a261707b51d728d0c2b4c32630bc43a8eb33b2.tar.gz |
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/nand/denali_dt.c')
-rw-r--r-- | drivers/mtd/nand/denali_dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 0cb1e8d..f821dc1 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; } |