summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lenovo')
-rw-r--r--src/mainboard/lenovo/s230u/romstage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/lenovo/s230u/romstage.c b/src/mainboard/lenovo/s230u/romstage.c
index ce751653c2..ad5f02187f 100644
--- a/src/mainboard/lenovo/s230u/romstage.c
+++ b/src/mainboard/lenovo/s230u/romstage.c
@@ -51,10 +51,9 @@ void pch_enable_lpc(void)
CONFIG_EC_BASE_ADDRESS | 1);
pci_write_config16(PCI_DEV(0, 0x1f, 0), 0xd8, 0xffc0);
- #ifdef CONFIG_USBDEBUG
/* Enable external USB port power. */
- ec_mm_set_bit(0x3b, 4);
- #endif
+ if (IS_ENABLED(CONFIG_USBDEBUG))
+ ec_mm_set_bit(0x3b, 4);
}
void rcba_config(void)