mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/rockchip: gem: remove unused func rockchip_gem_mmap_buf()
The func can be replaced by drm_gem_mmap_obj(). Change-Id: I8a0687ee6f6df70129b8978e993d22158c2c3d64 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
@@ -594,18 +594,6 @@ const struct drm_gem_object_funcs rockchip_gem_object_funcs = {
|
||||
.vm_ops = &drm_gem_dma_vm_ops,
|
||||
};
|
||||
|
||||
int rockchip_gem_mmap_buf(struct drm_gem_object *obj,
|
||||
struct vm_area_struct *vma)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = drm_gem_mmap_obj(obj, obj->size, vma);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return rockchip_drm_gem_object_mmap(obj, vma);
|
||||
}
|
||||
|
||||
static struct rockchip_gem_object *
|
||||
rockchip_gem_alloc_object(struct drm_device *drm, unsigned int size,
|
||||
unsigned int flags)
|
||||
|
||||
@@ -54,9 +54,6 @@ void rockchip_gem_free_object(struct drm_gem_object *obj);
|
||||
int rockchip_gem_dumb_create(struct drm_file *file_priv,
|
||||
struct drm_device *dev,
|
||||
struct drm_mode_create_dumb *args);
|
||||
/* mmap a gem object to userspace. */
|
||||
int rockchip_gem_mmap_buf(struct drm_gem_object *obj,
|
||||
struct vm_area_struct *vma);
|
||||
|
||||
/*
|
||||
* request gem object creation and buffer allocation as the size
|
||||
|
||||
Reference in New Issue
Block a user