Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 887957b4 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Brian Norris
Browse files

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: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 29f63f65
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;