]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: rcar-fcp: Drop local dma_parms
authorRobin Murphy <robin.murphy@arm.com>
Thu, 3 Sep 2020 21:12:27 +0000 (23:12 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Sep 2020 12:06:27 +0000 (14:06 +0200)
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.

Also the DMA segment size is simply a size, not a bitmask.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-fcp.c

index 5c6b00737fe75f8e300db165771b727d3a3b2efe..13a84c7e3586552142ec3a459fee1fb4fa0f6b3d 100644 (file)
@@ -22,7 +22,6 @@
 struct rcar_fcp_device {
        struct list_head list;
        struct device *dev;
-       struct device_dma_parameters dma_parms;
 };
 
 static LIST_HEAD(fcp_devices);
@@ -138,8 +137,7 @@ static int rcar_fcp_probe(struct platform_device *pdev)
 
        fcp->dev = &pdev->dev;
 
-       fcp->dev->dma_parms = &fcp->dma_parms;
-       dma_set_max_seg_size(fcp->dev, DMA_BIT_MASK(32));
+       dma_set_max_seg_size(fcp->dev, UINT_MAX);
 
        pm_runtime_enable(&pdev->dev);