mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
DMA: shdma: (cosmetic) don't re-calculate a pointer
Use an existing pointer instead of retrieving it again. Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
f784d9c904
commit
fa74326c44
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue