mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/msm: 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.
Also the DMA segment size is simply a size, not a bitmask.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
fdf38426cd
commit
d5653a994a
@ -453,15 +453,7 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err_msm_uninit;
|
goto err_msm_uninit;
|
||||||
|
|
||||||
if (!dev->dma_parms) {
|
dma_set_max_seg_size(dev, UINT_MAX);
|
||||||
dev->dma_parms = devm_kzalloc(dev, sizeof(*dev->dma_parms),
|
|
||||||
GFP_KERNEL);
|
|
||||||
if (!dev->dma_parms) {
|
|
||||||
ret = -ENOMEM;
|
|
||||||
goto err_msm_uninit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dma_set_max_seg_size(dev, DMA_BIT_MASK(32));
|
|
||||||
|
|
||||||
msm_gem_shrinker_init(ddev);
|
msm_gem_shrinker_init(ddev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user