mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
dmaengine: dw: pass platform data via struct dw_dma_chip
We pass struct dw_dma_chip to dw_dma_probe() anyway, thus we may use it to pass a platform data as well. While here, constify the source of the platform data. Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
161c3d04ae
commit
3a14c66d43
6 changed files with 17 additions and 11 deletions
|
|
@ -1248,7 +1248,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
|
|||
hsdev->dma->dev = &ofdev->dev;
|
||||
|
||||
/* Initialize AHB DMAC */
|
||||
err = dw_dma_probe(hsdev->dma, NULL);
|
||||
err = dw_dma_probe(hsdev->dma);
|
||||
if (err)
|
||||
goto error_dma_iomap;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue