summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/shim/src/ioex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/shim/src/ioex.c b/zephyr/shim/src/ioex.c
index 11255b0407..7d9ba99946 100644
--- a/zephyr/shim/src/ioex.c
+++ b/zephyr/shim/src/ioex.c
@@ -274,6 +274,9 @@ static void ioex_isr(const struct device *port,
int ioex_init(int ioex)
{
+ if (!IS_ENABLED(CONFIG_PLATFORM_EC_IOEX_CROS_DRV))
+ return EC_SUCCESS;
+
const struct ioexpander_drv *drv = ioex_config[ioex].drv;
int rv;