mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Aug 8 09:59:01 PDT 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=887957b4af65df55ed90a707fa7dfa3ebf37f50c
Commit: 887957b4af65df55ed90a707fa7dfa3ebf37f50c
Parent: 29f63f65cc327d87e7ced987d9e4c58b1ede9bf7
Author: Vasily Khoruzhick <anarsoul at gmail.com>
AuthorDate: Mon Jun 30 22:12:16 2014 +0300
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Jul 2 15:19:22 2014 -0700
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 at gmail.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/s3c2410.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 79acbb8..6b97bf1 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;
More information about the linux-mtd-cvs
mailing list