summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-04-01 15:06:54 (GMT)
committerRob Herring <robh@kernel.org>2016-04-01 15:12:59 (GMT)
commit99c55b0154f2aa554a8bc25a0376ced2352d42bc (patch)
tree7143de7c5573cc85bc86c459fcbbd88437e21a39
parent047b9b2484b4e68741df2cb522915f968c013373 (diff)
downloaddrm_hwcomposer-99c55b0154f2aa554a8bc25a0376ced2352d42bc.tar.gz
drm_hwcomposer-99c55b0154f2aa554a8bc25a0376ced2352d42bc.tar.xz
drm_hwcomposer: remove unnecessary gralloc_drm_bo_t dependency
gralloc_bo is not used anywhere and depending on it pulls in unnecessary dependencies from drm_gralloc, so remove it. Change-Id: I81b9dc88124ea6a0e66e188656d44215e735d177 Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--drmgenericimporter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/drmgenericimporter.cpp b/drmgenericimporter.cpp
index 8c90f5f..f81ea9b 100644
--- a/drmgenericimporter.cpp
+++ b/drmgenericimporter.cpp
@@ -25,8 +25,6 @@
#include <xf86drmMode.h>
#include <cutils/log.h>
-#include <gralloc_drm.h>
-#include <gralloc_drm_priv.h>
#include <gralloc_drm_handle.h>
#include <hardware/gralloc.h>
@@ -90,12 +88,6 @@ int DrmGenericImporter::ImportBuffer(buffer_handle_t handle, hwc_drm_bo_t *bo) {
if (!gr_handle)
return -EINVAL;
- struct gralloc_drm_bo_t *gralloc_bo = gr_handle->data;
- if (!gralloc_bo) {
- ALOGE("Could not get drm bo from handle");
- return -EINVAL;
- }
-
uint32_t gem_handle;
int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle);
if (ret) {