summaryrefslogtreecommitdiff
path: root/host/arch/arm/lib/crossystem_arch.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/arch/arm/lib/crossystem_arch.c')
-rw-r--r--host/arch/arm/lib/crossystem_arch.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index 539d765b..4dabb287 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -541,11 +541,7 @@ int VbGetArchPropertyInt(const char* name)
} else if (!strcasecmp(name, "devsw_cur")) {
/* Systems with virtual developer switches return at-boot
* value */
- int flags = VbGetSystemPropertyInt("vdat_flags");
- if ((flags != -1) && (flags & VBSD_HONOR_VIRT_DEV_SWITCH))
- return VbGetSystemPropertyInt("devsw_boot");
-
- return VbGetVarGpio("developer-switch");
+ return VbGetSystemPropertyInt("devsw_boot");
} else if (!strcasecmp(name, "recoverysw_cur")) {
int value;
/* Try GPIO chardev API first. */