mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
dmaengine: rcar-dmac: 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/23d40e15af10aad4724a2770ec18b4b28c1b8a71.1599164692.git.robin.murphy@arm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
6c609220c3
commit
93f8688182
1 changed files with 0 additions and 2 deletions
|
@ -199,7 +199,6 @@ struct rcar_dmac {
|
||||||
struct dma_device engine;
|
struct dma_device engine;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
void __iomem *iomem;
|
void __iomem *iomem;
|
||||||
struct device_dma_parameters parms;
|
|
||||||
|
|
||||||
unsigned int n_channels;
|
unsigned int n_channels;
|
||||||
struct rcar_dmac_chan *channels;
|
struct rcar_dmac_chan *channels;
|
||||||
|
@ -1845,7 +1844,6 @@ static int rcar_dmac_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
dmac->dev = &pdev->dev;
|
dmac->dev = &pdev->dev;
|
||||||
platform_set_drvdata(pdev, dmac);
|
platform_set_drvdata(pdev, dmac);
|
||||||
dmac->dev->dma_parms = &dmac->parms;
|
|
||||||
dma_set_max_seg_size(dmac->dev, RCAR_DMATCR_MASK);
|
dma_set_max_seg_size(dmac->dev, RCAR_DMATCR_MASK);
|
||||||
dma_set_mask_and_coherent(dmac->dev, DMA_BIT_MASK(40));
|
dma_set_mask_and_coherent(dmac->dev, DMA_BIT_MASK(40));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue