forked from luck/tmp_suning_uos_patched
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:
parent
29f63f65cc
commit
887957b4af
|
@ -208,10 +208,10 @@ static void s3c2410_nand_clk_set_state(struct s3c2410_nand_info *info,
|
|||
|
||||
if (info->clk_state == CLOCK_ENABLE) {
|
||||
if (new_state != CLOCK_ENABLE)
|
||||
clk_disable(info->clk);
|
||||
clk_disable_unprepare(info->clk);
|
||||
} else {
|
||||
if (new_state == CLOCK_ENABLE)
|
||||
clk_enable(info->clk);
|
||||
clk_prepare_enable(info->clk);
|
||||
}
|
||||
|
||||
info->clk_state = new_state;
|
||||
|
|
Loading…
Reference in New Issue
Block a user