Commit 03bf2793 authored by Wolfram Sang's avatar Wolfram Sang Committed by Vinod Koul

dmaengine: fsldma: simplify getting .drvdata

We should get drvdata from struct device directly. Going via
platform_device is an unneeded step back and forth.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 60cc43fc
...@@ -1328,8 +1328,7 @@ static int fsldma_of_remove(struct platform_device *op) ...@@ -1328,8 +1328,7 @@ static int fsldma_of_remove(struct platform_device *op)
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int fsldma_suspend_late(struct device *dev) static int fsldma_suspend_late(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct fsldma_device *fdev = dev_get_drvdata(dev);
struct fsldma_device *fdev = platform_get_drvdata(pdev);
struct fsldma_chan *chan; struct fsldma_chan *chan;
int i; int i;
...@@ -1360,8 +1359,7 @@ static int fsldma_suspend_late(struct device *dev) ...@@ -1360,8 +1359,7 @@ static int fsldma_suspend_late(struct device *dev)
static int fsldma_resume_early(struct device *dev) static int fsldma_resume_early(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct fsldma_device *fdev = dev_get_drvdata(dev);
struct fsldma_device *fdev = platform_get_drvdata(pdev);
struct fsldma_chan *chan; struct fsldma_chan *chan;
u32 mode; u32 mode;
int i; int i;
......
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