From 000e1262e965cdf1bf65a335160e64096fb0d5b5 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Sun, 4 Jan 2015 15:34:16 +0100 Subject: p51xx: camera: get module by class Change-Id: I75854ad14a51dedfe3c394d32e1afe2866385d74 --- BoardConfigCommon.mk | 3 --- camerawrapper/CameraWrapper.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 4cb25ba..c96fcd5 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -52,9 +52,6 @@ USE_OPENGL_RENDERER := true TARGET_BOOTANIMATION_PRELOAD := true TARGET_BOOTANIMATION_USE_RGB565 := true -# Camera -COMMON_GLOBAL_CFLAGS += -DDISABLE_HW_ID_MATCH_CHECK - # Vold BOARD_VOLD_MAX_PARTITIONS := 12 BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp index e15bae9..7a13301 100644 --- a/camerawrapper/CameraWrapper.cpp +++ b/camerawrapper/CameraWrapper.cpp @@ -89,7 +89,7 @@ static int check_vendor_module() if(gVendorModule) return 0; - rv = hw_get_module("vendor-camera", (const hw_module_t **)&gVendorModule); + rv = hw_get_module_by_class("camera", "vendor", (const hw_module_t **)&gVendorModule); if (rv) ALOGE("failed to open vendor camera module"); return rv; -- cgit v1.1