dmaengine: imx-sdma: Drop local dma_parms
authorRobin Murphy <robin.murphy@arm.com>
Thu, 3 Sep 2020 20:25:48 +0000 (21:25 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Sep 2020 12:12:13 +0000 (17:42 +0530)
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/d9b551dcf712a91860af3c5dd01a31b9b97ac1c5.1599164692.git.robin.murphy@arm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c

index 4f8d8f5..16b908c 100644 (file)
@@ -426,7 +426,6 @@ struct sdma_driver_data {
 
 struct sdma_engine {
        struct device                   *dev;
-       struct device_dma_parameters    dma_parms;
        struct sdma_channel             channel[MAX_DMA_CHANNELS];
        struct sdma_channel_control     *channel_control;
        void __iomem                    *regs;
@@ -2118,7 +2117,6 @@ static int sdma_probe(struct platform_device *pdev)
        sdma->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT;
        sdma->dma_device.device_prep_dma_memcpy = sdma_prep_memcpy;
        sdma->dma_device.device_issue_pending = sdma_issue_pending;
-       sdma->dma_device.dev->dma_parms = &sdma->dma_parms;
        sdma->dma_device.copy_align = 2;
        dma_set_max_seg_size(sdma->dma_device.dev, SDMA_BD_MAX_CNT);