summaryrefslogtreecommitdiffstats
path: root/hardware.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardware.c')
-rw-r--r--hardware.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hardware.c b/hardware.c
index 1f831cb..4c58e38 100644
--- a/hardware.c
+++ b/hardware.c
@@ -89,11 +89,13 @@ static int load(const char *id,
}
/* Check that the id matches */
+#ifndef DISABLE_HW_ID_MATCH_CHECK
if (strcmp(id, hmi->id) != 0) {
ALOGE("load: id=%s != hmi->id=%s", id, hmi->id);
status = -EINVAL;
goto done;
}
+#endif /* DISABLE_HW_ID_MATCH_CHECK */
hmi->dso = handle;