summaryrefslogtreecommitdiff
path: root/src/mainboard/google/smaug
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/smaug')
-rw-r--r--src/mainboard/google/smaug/chromeos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/smaug/chromeos.c b/src/mainboard/google/smaug/chromeos.c
index 86e8cb2edb..567a3ae253 100644
--- a/src/mainboard/google/smaug/chromeos.c
+++ b/src/mainboard/google/smaug/chromeos.c
@@ -22,7 +22,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
{WRITE_PROTECT_L, ACTIVE_LOW,
- gpio_get(WRITE_PROTECT_L), "write protect"},
+ !get_write_protect_state(), "write protect"},
{-1, ACTIVE_HIGH, get_recovery_mode_switch(), "recovery"},
{POWER_BUTTON, ACTIVE_LOW, -1, "power"},
{EC_IN_RW, ACTIVE_HIGH, -1, "EC in RW"},