mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
dmaengine: imx-dma: Drop local dma_parms
Since commit 9495b7e92f
("driver core: platform: Initialize dma_parms
for platform devices"), struct platform_device already provides a
dma_parms structure, so we can save allocating another one.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7fad3c60cac2bf4f8dab791f8b6eafae90abc960.1599164692.git.robin.murphy@arm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
2f02b23ce9
commit
18851192be
@ -173,7 +173,6 @@ enum imx_dma_type {
|
||||
|
||||
struct imxdma_engine {
|
||||
struct device *dev;
|
||||
struct device_dma_parameters dma_parms;
|
||||
struct dma_device dma_device;
|
||||
void __iomem *base;
|
||||
struct clk *dma_ahb;
|
||||
@ -1196,7 +1195,6 @@ static int __init imxdma_probe(struct platform_device *pdev)
|
||||
platform_set_drvdata(pdev, imxdma);
|
||||
|
||||
imxdma->dma_device.copy_align = DMAENGINE_ALIGN_4_BYTES;
|
||||
imxdma->dma_device.dev->dma_parms = &imxdma->dma_parms;
|
||||
dma_set_max_seg_size(imxdma->dma_device.dev, 0xffffff);
|
||||
|
||||
ret = dma_async_device_register(&imxdma->dma_device);
|
||||
|
Loading…
Reference in New Issue
Block a user