power: Fixing broken condition
Fixing broken condition in make file
Change-Id: I109cb4090aabd83a1512307f18bc397fb7dc9a67
diff --git a/Android.mk b/Android.mk
index d970428..209521c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -91,9 +91,7 @@
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_VENDOR_MODULE := true
include $(BUILD_SHARED_LIBRARY)
-endif
-
-ifeq ($(call is-board-platform-in-list,trinket), false)
+else
LOCAL_MODULE := android.hardware.power@1.2-service
LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
LOCAL_MODULE_TAGS := optional
diff --git a/power-vendor-board.mk b/power-vendor-board.mk
index 8d16715..bcb41a5 100644
--- a/power-vendor-board.mk
+++ b/power-vendor-board.mk
@@ -1,3 +1,5 @@
-ifeq ($(call is-board-platform-in-list,trinket), false)
+ifeq ($(call is-board-platform-in-list,trinket), true)
+TARGET_USES_NON_LEGACY_POWERHAL := false
+else
TARGET_USES_NON_LEGACY_POWERHAL := true
endif