summaryrefslogtreecommitdiff
path: root/common/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/switch.c')
-rw-r--r--common/switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/switch.c b/common/switch.c
index 5dc0fc6a35..2c1ea804a8 100644
--- a/common/switch.c
+++ b/common/switch.c
@@ -48,7 +48,7 @@ static void switch_update(void)
else
*memmap_switches &= ~EC_SWITCH_LID_OPEN;
- if ((flash_get_protect() & EC_FLASH_PROTECT_GPIO_ASSERTED) == 0)
+ if ((crec_flash_get_protect() & EC_FLASH_PROTECT_GPIO_ASSERTED) == 0)
*memmap_switches |= EC_SWITCH_WRITE_PROTECT_DISABLED;
else
*memmap_switches &= ~EC_SWITCH_WRITE_PROTECT_DISABLED;