summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/shim/src/usba.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/shim/src/usba.c b/zephyr/shim/src/usba.c
index bb88437f87..d3191a4f8d 100644
--- a/zephyr/shim/src/usba.c
+++ b/zephyr/shim/src/usba.c
@@ -17,7 +17,10 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
#define USBA_ENABLE_PINS(inst) DT_INST_FOREACH_PROP_ELEM(inst, enable_pins, PIN)
-const int usb_port_enable[] = {
+#if !IS_ENABLED(CONFIG_PLATFORM_EC_USB_PORT_ENABLE_DYNAMIC)
+const
+#endif
+int usb_port_enable[] = {
DT_INST_FOREACH_STATUS_OKAY(USBA_ENABLE_PINS)
};