All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dma: tegra: add clk_prepare/clk_unprepare
@ 2012-06-25  6:31 Prashant Gaikwad
  2012-06-25  6:46 ` Laxman Dewangan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Prashant Gaikwad @ 2012-06-25  6:31 UTC (permalink / raw)
  To: vinod.koul, dan.j.williams, swarren
  Cc: linux-kernel, ldewangan, Prashant Gaikwad

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

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
---
 drivers/dma/tegra20-apb-dma.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 134ea7c..30fa67a 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -1366,7 +1366,7 @@ static int tegra_dma_runtime_suspend(struct device *dev)
 	struct platform_device *pdev = to_platform_device(dev);
 	struct tegra_dma *tdma = platform_get_drvdata(pdev);
 
-	clk_disable(tdma->dma_clk);
+	clk_disable_unprepare(tdma->dma_clk);
 	return 0;
 }
 
@@ -1376,7 +1376,7 @@ static int tegra_dma_runtime_resume(struct device *dev)
 	struct tegra_dma *tdma = platform_get_drvdata(pdev);
 	int ret;
 
-	ret = clk_enable(tdma->dma_clk);
+	ret = clk_prepare_enable(tdma->dma_clk);
 	if (ret < 0) {
 		dev_err(dev, "clk_enable failed: %d\n", ret);
 		return ret;
-- 
1.7.4.1


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

* Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare
  2012-06-25  6:31 [PATCH] dma: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
@ 2012-06-25  6:46 ` Laxman Dewangan
  2012-06-25 15:46 ` Stephen Warren
  2012-06-27 13:34 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Laxman Dewangan @ 2012-06-25  6:46 UTC (permalink / raw)
  To: Prashant Gaikwad; +Cc: vinod.koul, dan.j.williams, swarren, linux-kernel

On Monday 25 June 2012 12:01 PM, Prashant Gaikwad wrote:
> Use clk_prepare/clk_unprepare as required by the generic clk framework.
>
> Signed-off-by: Prashant Gaikwad<pgaikwad@nvidia.com>
> ---
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>


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

* Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare
  2012-06-25  6:31 [PATCH] dma: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
  2012-06-25  6:46 ` Laxman Dewangan
@ 2012-06-25 15:46 ` Stephen Warren
  2012-06-27 13:34 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2012-06-25 15:46 UTC (permalink / raw)
  To: Prashant Gaikwad; +Cc: vinod.koul, dan.j.williams, linux-kernel, ldewangan

On 06/25/2012 12:31 AM, Prashant Gaikwad wrote:
> Use clk_prepare/clk_unprepare as required by the generic clk framework.
> 
> Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>

Acked-by: Stephen Warren <swarren@wwwdotorg.org>

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

* Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare
  2012-06-25  6:31 [PATCH] dma: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
  2012-06-25  6:46 ` Laxman Dewangan
  2012-06-25 15:46 ` Stephen Warren
@ 2012-06-27 13:34 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2012-06-27 13:34 UTC (permalink / raw)
  To: Prashant Gaikwad; +Cc: dan.j.williams, swarren, linux-kernel, ldewangan

On Mon, 2012-06-25 at 12:01 +0530, Prashant Gaikwad wrote:
> Use clk_prepare/clk_unprepare as required by the generic clk framework.
Applied, thanks

-- 
~Vinod


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

end of thread, other threads:[~2012-06-27 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25  6:31 [PATCH] dma: tegra: add clk_prepare/clk_unprepare Prashant Gaikwad
2012-06-25  6:46 ` Laxman Dewangan
2012-06-25 15:46 ` Stephen Warren
2012-06-27 13:34 ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.