Skip to content

Commit

Permalink
dma: tegra: add clk_prepare/clk_unprepare
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
  • Loading branch information
prasshantg authored and Vinod Koul committed Jun 27, 2012
1 parent 597c854 commit 56482ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/tegra20-apb-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
Expand Down

0 comments on commit 56482ec

Please sign in to comment.