diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-06-06 11:37:13 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-05 02:10:58 -0400 |
commit | fa74326c44767626a5ae794b29d54103e2259e64 (patch) | |
tree | 7bd33d72618c1d001676e37722c61d2e471bceaf /drivers/dma/sh | |
parent | f784d9c90469d75a9f7a38c1568f47e95ae504ca (diff) |
DMA: shdma: (cosmetic) don't re-calculate a pointer
Use an existing pointer instead of retrieving it again.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh')
-rw-r--r-- | drivers/dma/sh/shdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/shdma.c b/drivers/dma/sh/shdma.c index b70709b030d8..a5a1887c34b5 100644 --- a/drivers/dma/sh/shdma.c +++ b/drivers/dma/sh/shdma.c | |||
@@ -729,7 +729,7 @@ static int sh_dmae_probe(struct platform_device *pdev) | |||
729 | goto eshdma; | 729 | goto eshdma; |
730 | 730 | ||
731 | /* platform data */ | 731 | /* platform data */ |
732 | shdev->pdata = pdev->dev.platform_data; | 732 | shdev->pdata = pdata; |
733 | 733 | ||
734 | if (pdata->chcr_offset) | 734 | if (pdata->chcr_offset) |
735 | shdev->chcr_offset = pdata->chcr_offset; | 735 | shdev->chcr_offset = pdata->chcr_offset; |