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)
commita1a261707b51d728d0c2b4c32630bc43a8eb33b2
treef4e6def2949c5c844ba80905049054597cbd94d7
parent6956e2385a16175ca350e199f9c760eb1644d5bf
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>
drivers/mtd/nand/denali_dt.c