power: Fix hal_api_version initialization
Test: Compile for angler
Change-Id: I3f20e7c046b3dd2dedc9a219532366826d9896b0
Signed-off-by: Ajay Dudani <adudani@google.com>
diff --git a/power/power.c b/power/power.c
index 01304ac..357ee2a 100644
--- a/power/power.c
+++ b/power/power.c
@@ -760,7 +760,7 @@
/* Common hw_device_t fields */
dev->common.tag = HARDWARE_DEVICE_TAG;
dev->common.module_api_version = POWER_MODULE_API_VERSION_0_5;
- dev->common.module_api_version = HARDWARE_HAL_API_VERSION;
+ dev->common.hal_api_version = HARDWARE_HAL_API_VERSION;
dev->init = power_init;
dev->powerHint = power_hint;