1
0
Fork 0

dw_dmac: don't call platform_get_drvdata twice

There is no need to call platform_get_drvdata twice as we have it already in dw
variable.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
hifive-unleashed-5.1
Andy Shevchenko 2012-10-18 17:34:10 +03:00 committed by Vinod Koul
parent 21d43f49cb
commit 6168d5670b
1 changed files with 2 additions and 2 deletions

View File

@ -1787,7 +1787,7 @@ static void dw_shutdown(struct platform_device *pdev)
{
struct dw_dma *dw = platform_get_drvdata(pdev);
dw_dma_off(platform_get_drvdata(pdev));
dw_dma_off(dw);
clk_disable_unprepare(dw->clk);
}
@ -1796,7 +1796,7 @@ static int dw_suspend_noirq(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct dw_dma *dw = platform_get_drvdata(pdev);
dw_dma_off(platform_get_drvdata(pdev));
dw_dma_off(dw);
clk_disable_unprepare(dw->clk);
return 0;