]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 2 Nov 2016 17:21:04 +0000 (02:21 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:40 +0000 (14:48 +0100)
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>
drivers/mtd/nand/denali_dt.c

index 0cb1e8d9fbfcfe6b0d45965b87eff0d9a3c5d6a9..f821dc1c5739817d52959f9fcbd30523980c11f6 100644 (file)
@@ -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;
 }