summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/gpio.c')
-rw-r--r--zephyr/shim/src/gpio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/zephyr/shim/src/gpio.c b/zephyr/shim/src/gpio.c
index cc2baa0fe7..5348133ead 100644
--- a/zephyr/shim/src/gpio.c
+++ b/zephyr/shim/src/gpio.c
@@ -303,13 +303,7 @@ static int init_gpios(const struct device *unused)
~(GPIO_OUTPUT_INIT_LOW | GPIO_OUTPUT_INIT_HIGH);
}
-#if IS_ZEPHYR_VERSION(2, 6)
rv = gpio_pin_configure(data[i].dev, configs[i].pin, flags);
-#elif IS_ZEPHYR_VERSION(2, 5)
- rv = gpio_config(data[i].dev, configs[i].pin, flags);
-#else
-#error "Unsupported zephyr version"
-#endif
if (rv < 0) {
LOG_ERR("Config failed %s (%d)", configs[i].name, rv);
}