Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: axi-dmac: Drop local dma_parms

Since commit 9495b7e92f71 ("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/9b759e4c9eb37c90a3616d31abe13af6a6dafcd2.1599164692.git.robin.murphy@arm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Robin Murphy and committed by
Vinod Koul
a4b1e659 8f6b6d06

-3
-3
drivers/dma/dma-axi-dmac.c
··· 145 145 146 146 struct dma_device dma_dev; 147 147 struct axi_dmac_chan chan; 148 - 149 - struct device_dma_parameters dma_parms; 150 148 }; 151 149 152 150 static struct axi_dmac *chan_to_axi_dmac(struct axi_dmac_chan *chan) ··· 946 948 947 949 INIT_LIST_HEAD(&dmac->chan.active_descs); 948 950 949 - pdev->dev.dma_parms = &dmac->dma_parms; 950 951 dma_set_max_seg_size(&pdev->dev, UINT_MAX); 951 952 952 953 dma_dev = &dmac->dma_dev;