summaryrefslogtreecommitdiff
path: root/marvell.c
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-09-18 15:29:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-26 20:43:59 -0700
commitba6bd503a8ac4da5b3f909ded71a3d60451fb372 (patch)
tree6a93db93c55d0c488b14df3cf0cb6951873bd18b /marvell.c
parent55525f5735014943e8e2e170ef1ed16bfe4956fe (diff)
minigbm: add a default (*bo_unmap) implementation
The (*bo_unmap) function is responsible for unmapping the buffer and cleaning up any data allocated during (*bo_map). Previously, we called munmap in drv_bo_unmap(), which caused some confusion. This method is cleaner. BUG=chromium:764871 TEST=emerge-betty minigbm Change-Id: I4dc20cd6b15e79bce21d33f03ebc84480c582981 Reviewed-on: https://chromium-review.googlesource.com/671693 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Joe Kniss <djmk@google.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Diffstat (limited to 'marvell.c')
-rw-r--r--marvell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/marvell.c b/marvell.c
index 8114ac7..455b033 100644
--- a/marvell.c
+++ b/marvell.c
@@ -31,6 +31,7 @@ struct backend backend_marvell = {
.bo_destroy = drv_dumb_bo_destroy,
.bo_import = drv_prime_bo_import,
.bo_map = drv_dumb_bo_map,
+ .bo_unmap = drv_bo_munmap,
};
#endif