diff options
-rw-r--r-- | drivers/dma/imx-dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index e53d438142bb..a46e1d9fa3e4 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -49,6 +49,7 @@ struct imxdma_channel { | |||
49 | 49 | ||
50 | struct imxdma_engine { | 50 | struct imxdma_engine { |
51 | struct device *dev; | 51 | struct device *dev; |
52 | struct device_dma_parameters dma_parms; | ||
52 | struct dma_device dma_device; | 53 | struct dma_device dma_device; |
53 | struct imxdma_channel channel[MAX_DMA_CHANNELS]; | 54 | struct imxdma_channel channel[MAX_DMA_CHANNELS]; |
54 | }; | 55 | }; |
@@ -370,6 +371,9 @@ static int __init imxdma_probe(struct platform_device *pdev) | |||
370 | 371 | ||
371 | platform_set_drvdata(pdev, imxdma); | 372 | platform_set_drvdata(pdev, imxdma); |
372 | 373 | ||
374 | imxdma->dma_device.dev->dma_parms = &imxdma->dma_parms; | ||
375 | dma_set_max_seg_size(imxdma->dma_device.dev, 0xffffff); | ||
376 | |||
373 | ret = dma_async_device_register(&imxdma->dma_device); | 377 | ret = dma_async_device_register(&imxdma->dma_device); |
374 | if (ret) { | 378 | if (ret) { |
375 | dev_err(&pdev->dev, "unable to register\n"); | 379 | dev_err(&pdev->dev, "unable to register\n"); |