DMA: shdma: (cosmetic) don't re-calculate a pointer
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 6 Jun 2013 15:37:13 +0000 (17:37 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 5 Jul 2013 06:10:58 +0000 (11:40 +0530)
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

index b70709b030d804e7e2d465fb98754bbb582f9199..a5a1887c34b559f70a01f9369876988681fc1f45 100644 (file)
@@ -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;