Commit 56482ec0 authored by Prashant Gaikwad's avatar Prashant Gaikwad Committed by Vinod Koul

dma: tegra: add clk_prepare/clk_unprepare

Use clk_prepare/clk_unprepare as required by the generic clk framework.
Signed-off-by: default avatarPrashant Gaikwad <pgaikwad@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 597c8549
...@@ -1366,7 +1366,7 @@ static int tegra_dma_runtime_suspend(struct device *dev) ...@@ -1366,7 +1366,7 @@ static int tegra_dma_runtime_suspend(struct device *dev)
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
struct tegra_dma *tdma = platform_get_drvdata(pdev); struct tegra_dma *tdma = platform_get_drvdata(pdev);
clk_disable(tdma->dma_clk); clk_disable_unprepare(tdma->dma_clk);
return 0; return 0;
} }
...@@ -1376,7 +1376,7 @@ static int tegra_dma_runtime_resume(struct device *dev) ...@@ -1376,7 +1376,7 @@ static int tegra_dma_runtime_resume(struct device *dev)
struct tegra_dma *tdma = platform_get_drvdata(pdev); struct tegra_dma *tdma = platform_get_drvdata(pdev);
int ret; int ret;
ret = clk_enable(tdma->dma_clk); ret = clk_prepare_enable(tdma->dma_clk);
if (ret < 0) { if (ret < 0) {
dev_err(dev, "clk_enable failed: %d\n", ret); dev_err(dev, "clk_enable failed: %d\n", ret);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment