diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2014-06-30 21:12:16 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-07-03 00:19:22 +0200 |
commit | 887957b4af65df55ed90a707fa7dfa3ebf37f50c (patch) | |
tree | 1001b2419609171f13ee1e2069615f0221c7f676 /drivers/mtd | |
parent | mtd: cmdlinepart: Spelling s/trucate/truncate/ (diff) | |
download | linux-887957b4af65df55ed90a707fa7dfa3ebf37f50c.tar.xz linux-887957b4af65df55ed90a707fa7dfa3ebf37f50c.zip |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 79acbb8691b5..6b97bf17ce5d 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -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; |