summaryrefslogtreecommitdiff
path: root/src/mainboard/google/oak/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/oak/chromeos.c')
-rw-r--r--src/mainboard/google/oak/chromeos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/oak/chromeos.c b/src/mainboard/google/oak/chromeos.c
index b5d70238a1..4e07236b4c 100644
--- a/src/mainboard/google/oak/chromeos.c
+++ b/src/mainboard/google/oak/chromeos.c
@@ -35,7 +35,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
{WRITE_PROTECT.id, ACTIVE_LOW,
- gpio_get(WRITE_PROTECT), "write protect"},
+ !get_write_protect_state(), "write protect"},
{-1, ACTIVE_HIGH, get_recovery_mode_switch(), "recovery"},
{LID.id, ACTIVE_HIGH, -1, "lid"},
{POWER_BUTTON.id, ACTIVE_HIGH, -1, "power"},