]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea81aa85173301aba705bf763b6bba65dfe23c3c
treef4e6def2949c5c844ba80905049054597cbd94d7
parent511df08bfa49c94c90a69c3d586894640de7fa0e
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