drm/exynos: do not use generic flags to dumb
authorInki Dae <inki.dae@samsung.com>
Thu, 18 Apr 2013 05:04:17 +0000 (14:04 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 29 Apr 2013 05:35:32 +0000 (14:35 +0900)
This patch removes the use of dumb flags from driver.

As Dave pointed out, the dumb flags are not driver specific
so this should be removed from driver.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index 0e6fe000578c08c78be0df9fa00e2205429e8576..cf4543ffa079deabd531d89ab28f015114cce7d2 100644 (file)
@@ -682,7 +682,8 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv,
        args->pitch = args->width * ((args->bpp + 7) / 8);
        args->size = args->pitch * args->height;
 
-       exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size);
+       exynos_gem_obj = exynos_drm_gem_create(dev, EXYNOS_BO_CONTIG |
+                                               EXYNOS_BO_WC, args->size);
        if (IS_ERR(exynos_gem_obj))
                return PTR_ERR(exynos_gem_obj);