drm/exynos: remove function roundup_gem_size
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 28 Jul 2015 08:53:27 +0000 (17:53 +0900)
committerInki Dae <inki.dae@samsung.com>
Sun, 16 Aug 2015 05:18:10 +0000 (14:18 +0900)
The function roundup_gem_size can be merged in exynos_drm_gem_create.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index 327edafd48ab24f5cf1f3c0d59193c8621567b13..2c9a0752298cb9b5af260aba4abeb47a1d733793 100644 (file)
 #include "exynos_drm_buf.h"
 #include "exynos_drm_iommu.h"
 
-static unsigned long roundup_gem_size(unsigned long size, unsigned int flags)
-{
-       /* TODO */
-
-       return roundup(size, PAGE_SIZE);
-}
-
 static int exynos_drm_gem_handle_create(struct drm_gem_object *obj,
                                        struct drm_file *file_priv,
                                        unsigned int *handle)
@@ -148,7 +141,7 @@ struct exynos_drm_gem_obj *exynos_drm_gem_create(struct drm_device *dev,
                return ERR_PTR(-EINVAL);
        }
 
-       size = roundup_gem_size(size, flags);
+       size = roundup(size, PAGE_SIZE);
 
        buf = exynos_drm_init_buf(dev, size);
        if (!buf)