mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare

Use clk_prepare_enable/clk_disable_unprepare to make the driver
work properly with common clock framework.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Vasily Khoruzhick 2014-06-30 22:12:16 +03:00 committed by Brian Norris
parent 29f63f65cc
commit 887957b4af

View file

@ -208,10 +208,10 @@ static void s3c2410_nand_clk_set_state(struct s3c2410_nand_info *info,
if (info->clk_state == CLOCK_ENABLE) { if (info->clk_state == CLOCK_ENABLE) {
if (new_state != CLOCK_ENABLE) if (new_state != CLOCK_ENABLE)
clk_disable(info->clk); clk_disable_unprepare(info->clk);
} else { } else {
if (new_state == CLOCK_ENABLE) if (new_state == CLOCK_ENABLE)
clk_enable(info->clk); clk_prepare_enable(info->clk);
} }
info->clk_state = new_state; info->clk_state = new_state;