From: Guennadi Liakhovetski Date: Thu, 6 Jun 2013 15:37:13 +0000 (+0200) Subject: DMA: shdma: (cosmetic) don't re-calculate a pointer X-Git-Tag: Ubuntu-5.0.0-8.9~13374^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fa74326c44767626a5ae794b29d54103e2259e64;p=mirror_ubuntu-disco-kernel.git DMA: shdma: (cosmetic) don't re-calculate a pointer Use an existing pointer instead of retrieving it again. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Vinod Koul --- 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;