summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh
diff options
context:
space:
mode:
authorGuennadi Liakhovetski2013-06-06 17:37:13 +0200
committerVinod Koul2013-07-05 08:10:58 +0200
commitfa74326c44767626a5ae794b29d54103e2259e64 (patch)
tree7bd33d72618c1d001676e37722c61d2e471bceaf /drivers/dma/sh
parentdmaengine: at_hdmac: prepare clk before calling enable (diff)
downloadkernel-qcow2-linux-fa74326c44767626a5ae794b29d54103e2259e64.tar.gz
kernel-qcow2-linux-fa74326c44767626a5ae794b29d54103e2259e64.tar.xz
kernel-qcow2-linux-fa74326c44767626a5ae794b29d54103e2259e64.zip
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.c2
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)
goto eshdma;
/* platform data */
- shdev->pdata = pdev->dev.platform_data;
+ shdev->pdata = pdata;
if (pdata->chcr_offset)
shdev->chcr_offset = pdata->chcr_offset;