Skip to content

Commit

Permalink
dmaengine: axi-dmac: Drop local dma_parms
Browse files Browse the repository at this point in the history
Since commit 9495b7e ("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 <[email protected]>
Link: https://lore.kernel.org/r/9b759e4c9eb37c90a3616d31abe13af6a6dafcd2.1599164692.git.robin.murphy@arm.com
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
rmurphy-arm authored and vinodkoul committed Sep 11, 2020
1 parent 8f6b6d0 commit a4b1e65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/dma/dma-axi-dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ struct axi_dmac {

struct dma_device dma_dev;
struct axi_dmac_chan chan;

struct device_dma_parameters dma_parms;
};

static struct axi_dmac *chan_to_axi_dmac(struct axi_dmac_chan *chan)
Expand Down Expand Up @@ -948,7 +946,6 @@ static int axi_dmac_probe(struct platform_device *pdev)

INIT_LIST_HEAD(&dmac->chan.active_descs);

pdev->dev.dma_parms = &dmac->dma_parms;
dma_set_max_seg_size(&pdev->dev, UINT_MAX);

dma_dev = &dmac->dma_dev;
Expand Down

0 comments on commit a4b1e65

Please sign in to comment.