powerHAL: Hikey: Fix compilation warning
am: 0bf3fb265c
Change-Id: I314b8605880df54a2acd21ba42c29e125626984e
diff --git a/power/power_hikey.c b/power/power_hikey.c
index 2bcd296..34264d8 100644
--- a/power/power_hikey.c
+++ b/power/power_hikey.c
@@ -442,10 +442,9 @@
pthread_mutex_unlock(&hikey->lock);
}
-static void set_feature(struct power_module *module, feature_t feature, int state)
+static void set_feature(struct power_module __unused *module,
+ feature_t feature, int state)
{
- struct hikey_power_module *hikey = container_of(module,
- struct hikey_power_module, base);
switch (feature) {
default:
ALOGW("Error setting the feature %d and state %d, it doesn't exist\n",