| From 7e3ecce2e20c51cc55c659412802e01b627149cc Mon Sep 17 00:00:00 2001 |
| From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
| Date: Thu, 6 Jun 2013 17:37:13 +0200 |
| Subject: 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> |
| (cherry picked from commit fa74326c44767626a5ae794b29d54103e2259e64) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/dma/sh/shdma.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| 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; |
| -- |
| 1.8.5.rc3 |
| |