diff options
author | Robin Murphy <robin.murphy@arm.com> | 2020-09-03 21:36:13 +0100 |
---|---|---|
committer | Liviu Dudau <liviu.dudau@arm.com> | 2020-10-20 20:41:02 +0100 |
commit | 1c831ade9f352d4690e2c3c67b674bc65cb3af3e (patch) | |
tree | e267e49b1f4852fe8725d65c4e3f56cdf662e0dc /drivers/gpu/drm/arm/display/komeda/komeda_dev.c | |
parent | ea40d7857d5250e5400f38c69ef9e17321e9c4a2 (diff) | |
download | lwn-1c831ade9f352d4690e2c3c67b674bc65cb3af3e.tar.gz lwn-1c831ade9f352d4690e2c3c67b674bc65cb3af3e.zip |
drm/komeda: 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>
Reviewed-by: James Qian Wang <james.qian.wang@arm.com>
[replaced DMA_BIT_MASK(32) with U32_MAX]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8de297b5b916628c77b99068fb5aac1a69eed6f5.1599164796.git.robin.murphy@arm.com
Diffstat (limited to 'drivers/gpu/drm/arm/display/komeda/komeda_dev.c')
-rw-r--r-- | drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c index 1d767473ba8a..03980211c48a 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c @@ -261,8 +261,7 @@ struct komeda_dev *komeda_dev_create(struct device *dev) goto disable_clk; } - dev->dma_parms = &mdev->dma_parms; - dma_set_max_seg_size(dev, DMA_BIT_MASK(32)); + dma_set_max_seg_size(dev, U32_MAX); mdev->iommu = iommu_get_domain_for_dev(mdev->dev); if (!mdev->iommu) |