提交 a1a26170 编写于 作者: M Masahiro Yamada 提交者: Boris Brezillon

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 6956e238
...@@ -110,7 +110,7 @@ static int denali_dt_remove(struct platform_device *ofdev) ...@@ -110,7 +110,7 @@ static int denali_dt_remove(struct platform_device *ofdev)
struct denali_dt *dt = platform_get_drvdata(ofdev); struct denali_dt *dt = platform_get_drvdata(ofdev);
denali_remove(&dt->denali); denali_remove(&dt->denali);
clk_disable(dt->clk); clk_disable_unprepare(dt->clk);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册