linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 5/9] Input: tegra-kbc - add clk_prepare/clk_unprepare
       [not found] <1338869966-8430-1-git-send-email-pgaikwad@nvidia.com>
@ 2012-06-05  4:19 ` Prashant Gaikwad
  2012-06-05  5:20   ` Shubhrajyoti
  0 siblings, 1 reply; 2+ messages in thread
From: Prashant Gaikwad @ 2012-06-05  4:19 UTC (permalink / raw)
  To: pgaikwad; +Cc: dmitry.torokhov, linux-input

Use clk_prepare/clk_unprepare as required by the generic clk framework.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
---
This patch should go through Tegra tree since other patches to port tegra
to generic clock framework are dependent on it. Posting here to get ack from
the maintainers.

 drivers/input/keyboard/tegra-kbc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 4ffe64d..2c1c9ed 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -492,7 +492,7 @@ static int tegra_kbc_start(struct tegra_kbc *kbc)
 	unsigned int debounce_cnt;
 	u32 val = 0;
 
-	clk_enable(kbc->clk);
+	clk_prepare_enable(kbc->clk);
 
 	/* Reset the KBC controller to clear all previous status.*/
 	tegra_periph_reset_assert(kbc->clk);
@@ -556,7 +556,7 @@ static void tegra_kbc_stop(struct tegra_kbc *kbc)
 	disable_irq(kbc->irq);
 	del_timer_sync(&kbc->timer);
 
-	clk_disable(kbc->clk);
+	clk_disable_unprepare(kbc->clk);
 }
 
 static int tegra_kbc_open(struct input_dev *dev)
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 5/9] Input: tegra-kbc - add clk_prepare/clk_unprepare
  2012-06-05  4:19 ` [PATCH v2 5/9] Input: tegra-kbc - add clk_prepare/clk_unprepare Prashant Gaikwad
@ 2012-06-05  5:20   ` Shubhrajyoti
  0 siblings, 0 replies; 2+ messages in thread
From: Shubhrajyoti @ 2012-06-05  5:20 UTC (permalink / raw)
  To: Prashant Gaikwad; +Cc: dmitry.torokhov, linux-input

On Tuesday 05 June 2012 09:49 AM, Prashant Gaikwad wrote:
> Use clk_prepare/clk_unprepare as required by the generic clk framework.
Not a comment just curious to know what does

clk_prepare/clk_unprepare do differently vis a vis enable.

> Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
> ---


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-05  5:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1338869966-8430-1-git-send-email-pgaikwad@nvidia.com>
2012-06-05  4:19 ` [PATCH v2 5/9] Input: tegra-kbc - add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-05  5:20   ` Shubhrajyoti

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).