mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
211b8878c1
commit
eb57da880b
1 changed files with 1 additions and 8 deletions
|
@ -20,13 +20,6 @@
|
||||||
#include "exynos_drm_buf.h"
|
#include "exynos_drm_buf.h"
|
||||||
#include "exynos_drm_iommu.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,
|
static int exynos_drm_gem_handle_create(struct drm_gem_object *obj,
|
||||||
struct drm_file *file_priv,
|
struct drm_file *file_priv,
|
||||||
unsigned int *handle)
|
unsigned int *handle)
|
||||||
|
@ -148,7 +141,7 @@ struct exynos_drm_gem_obj *exynos_drm_gem_create(struct drm_device *dev,
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
size = roundup_gem_size(size, flags);
|
size = roundup(size, PAGE_SIZE);
|
||||||
|
|
||||||
buf = exynos_drm_init_buf(dev, size);
|
buf = exynos_drm_init_buf(dev, size);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
|
|
Loading…
Add table
Reference in a new issue