2012-06-25 06:31:58

by Prashant Gaikwad

[permalink] [raw]
Subject: [PATCH] dma: tegra: add clk_prepare/clk_unprepare

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

Signed-off-by: Prashant Gaikwad <[email protected]>
---
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


2012-06-25 06:47:42

by Laxman Dewangan

[permalink] [raw]
Subject: Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare

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<[email protected]>
> ---
Acked-by: Laxman Dewangan <[email protected]>

2012-06-25 15:46:38

by Stephen Warren

[permalink] [raw]
Subject: Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare

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 <[email protected]>

Acked-by: Stephen Warren <[email protected]>

2012-06-27 13:43:48

by Vinod Koul

[permalink] [raw]
Subject: Re: [PATCH] dma: tegra: add clk_prepare/clk_unprepare

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