summaryrefslogtreecommitdiffstats
path: root/gralloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc.c')
-rw-r--r--gralloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc.c b/gralloc.c
index fd4f848..e134e81 100644
--- a/gralloc.c
+++ b/gralloc.c
@@ -149,7 +149,7 @@ static int drm_mod_lock(const gralloc_module_t *mod, buffer_handle_t handle,
if (!bo)
return -EINVAL;
- return gralloc_drm_bo_map(bo, x, y, w, h, 1, ptr);
+ return gralloc_drm_bo_lock(bo, usage, x, y, w, h, ptr);
}
static int drm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle)
@@ -161,7 +161,7 @@ static int drm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle)
if (!bo)
return -EINVAL;
- gralloc_drm_bo_unmap(bo);
+ gralloc_drm_bo_unlock(bo);
return 0;
}