* [PATCH] mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare
@ 2014-06-30 19:12 Vasily Khoruzhick
2014-07-03 0:26 ` Brian Norris
0 siblings, 1 reply; 2+ messages in thread
From: Vasily Khoruzhick @ 2014-06-30 19:12 UTC (permalink / raw)
To: linux-arm-kernel
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>
---
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;
--
2.0.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare
2014-06-30 19:12 [PATCH] mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare Vasily Khoruzhick
@ 2014-07-03 0:26 ` Brian Norris
0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-07-03 0:26 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jun 30, 2014 at 10:12:16PM +0300, Vasily Khoruzhick wrote:
> 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>
Pushed to l2-mtd.git. Thanks!
Brian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-03 0:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-30 19:12 [PATCH] mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare Vasily Khoruzhick
2014-07-03 0:26 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).