diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2015-07-28 04:53:27 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-08-16 01:18:10 -0400 |
commit | eb57da880b00b6c68f971e077ff3e4db9ef0deae (patch) | |
tree | de1f0a1661dd0ab28f98d230ec1bc5dc8bd8631a | |
parent | 211b8878c13fbd5f8ae8a7b68798d178cb5346b4 (diff) |
drm/exynos: remove function roundup_gem_size
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>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 327edafd48ab..2c9a0752298c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c | |||
@@ -20,13 +20,6 @@ | |||
20 | #include "exynos_drm_buf.h" | 20 | #include "exynos_drm_buf.h" |
21 | #include "exynos_drm_iommu.h" | 21 | #include "exynos_drm_iommu.h" |
22 | 22 | ||
23 | static unsigned long roundup_gem_size(unsigned long size, unsigned int flags) | ||
24 | { | ||
25 | /* TODO */ | ||
26 | |||
27 | return roundup(size, PAGE_SIZE); | ||
28 | } | ||
29 | |||
30 | static int exynos_drm_gem_handle_create(struct drm_gem_object *obj, | 23 | static int exynos_drm_gem_handle_create(struct drm_gem_object *obj, |
31 | struct drm_file *file_priv, | 24 | struct drm_file *file_priv, |
32 | unsigned int *handle) | 25 | unsigned int *handle) |
@@ -148,7 +141,7 @@ struct exynos_drm_gem_obj *exynos_drm_gem_create(struct drm_device *dev, | |||
148 | return ERR_PTR(-EINVAL); | 141 | return ERR_PTR(-EINVAL); |
149 | } | 142 | } |
150 | 143 | ||
151 | size = roundup_gem_size(size, flags); | 144 | size = roundup(size, PAGE_SIZE); |
152 | 145 | ||
153 | buf = exynos_drm_init_buf(dev, size); | 146 | buf = exynos_drm_init_buf(dev, size); |
154 | if (!buf) | 147 | if (!buf) |