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 <viresh.kumar@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:

committed by
Vinod Koul

parent
161c3d04ae
commit
3a14c66d43
@@ -203,7 +203,7 @@ static struct dw_dma_chip *dw_probe(struct device *dev, struct resource *mem,
|
||||
|
||||
chip->dev = dev;
|
||||
|
||||
err = dw_dma_probe(chip, NULL);
|
||||
err = dw_dma_probe(chip);
|
||||
if (err)
|
||||
return ERR_PTR(err);
|
||||
|
||||
|
Reference in New Issue
Block a user