diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index bb82ef78ca85..81192d00b39e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c | |||
@@ -286,7 +286,11 @@ static struct drm_driver exynos_drm_driver = { | |||
286 | 286 | ||
287 | static int exynos_drm_platform_probe(struct platform_device *pdev) | 287 | static int exynos_drm_platform_probe(struct platform_device *pdev) |
288 | { | 288 | { |
289 | pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | 289 | int ret; |
290 | |||
291 | ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); | ||
292 | if (ret) | ||
293 | return ret; | ||
290 | 294 | ||
291 | return drm_platform_init(&exynos_drm_driver, pdev); | 295 | return drm_platform_init(&exynos_drm_driver, pdev); |
292 | } | 296 | } |
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index acf667859cb6..701c4c10e08b 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | |||
@@ -664,8 +664,9 @@ static int omap_dmm_probe(struct platform_device *dev) | |||
664 | } | 664 | } |
665 | 665 | ||
666 | /* set dma mask for device */ | 666 | /* set dma mask for device */ |
667 | /* NOTE: this is a workaround for the hwmod not initializing properly */ | 667 | ret = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32)); |
668 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | 668 | if (ret) |
669 | goto fail; | ||
669 | 670 | ||
670 | omap_dmm->dummy_pa = page_to_phys(omap_dmm->dummy_page); | 671 | omap_dmm->dummy_pa = page_to_phys(omap_dmm->dummy_page); |
671 | 672 | ||