Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vasily Khoruzhick and committed by
Brian Norris
887957b4 29f63f65

+2 -2
+2 -2
drivers/mtd/nand/s3c2410.c
··· 208 208 209 209 if (info->clk_state == CLOCK_ENABLE) { 210 210 if (new_state != CLOCK_ENABLE) 211 - clk_disable(info->clk); 211 + clk_disable_unprepare(info->clk); 212 212 } else { 213 213 if (new_state == CLOCK_ENABLE) 214 - clk_enable(info->clk); 214 + clk_prepare_enable(info->clk); 215 215 } 216 216 217 217 info->clk_state = new_state;