diff mbox

[1/3] DMA: shdma: (cosmetic) don't re-calculate a pointer

Message ID 1373380677-450-2-git-send-email-lee.jones@linaro.org
State Accepted
Commit fa74326c44767626a5ae794b29d54103e2259e64
Headers show

Commit Message

Lee Jones July 9, 2013, 2:37 p.m. UTC
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

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>
---
 drivers/dma/sh/shdma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/dma/sh/shdma.c b/drivers/dma/sh/shdma.c
index b70709b..a5a1887 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;