Thread (2 messages) 2 messages, 2 authors, 2012-03-16

[PATCH] Input: navpoint: add clk_prepare/clk_unprepare calls

From: Philipp Zabel <hidden>
Date: 2012-03-15 18:09:41
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

This patch adds clk_prepare/clk_unprepare calls to the navpoint
driver by using the helper functions clk_prepare_enable and
clk_disable_unprepare.

Signed-off-by: Philipp Zabel <redacted>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Paul Parsons <redacted>
---
 drivers/input/mouse/navpoint.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/mouse/navpoint.c b/drivers/input/mouse/navpoint.c
index 253ec18..cb0d3b1 100644
--- a/drivers/input/mouse/navpoint.c
+++ b/drivers/input/mouse/navpoint.c
@@ -225,7 +225,7 @@ static int navpoint_suspend(struct device *dev)
 
 	pxa_ssp_write_reg(ssp, SSCR0, 0);
 
-	clk_disable(ssp->clk);
+	clk_disable_unprepare(ssp->clk);
 
 	return 0;
 }
@@ -236,7 +236,7 @@ static int navpoint_resume(struct device *dev)
 	struct ssp_device *ssp = drv_data->ssp;
 	int timeout;
 
-	clk_enable(ssp->clk);
+	clk_prepare_enable(ssp->clk);
 
 	pxa_ssp_write_reg(ssp, SSCR1, sscr1);
 	pxa_ssp_write_reg(ssp, SSSR, sssr);
-- 
1.7.9.1

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help