Skip to contentSkip to conversation

mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare

PATCH New Vasily Khoruzhick 2 participants 2 messages Jun 30, 2014 – Jul 3, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mtd/nand/s3c2410.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/nand/s3c2410.c +2 -2
index 79acbb8..6b97bf1 100644
@@ -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;
Signature · 1 line
2.0.0
Applied
#1 lore raw

PATCH 1/1 mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare

Quoted 4 lines · Vasily Khoruzhick

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

Pushed to l2-mtd.git. Thanks!

Brian