summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/mxc_gpio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 3b163cb47a3..2353b50b2a0 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -40,11 +40,7 @@ struct mxc_bank_info {
};
#ifndef CONFIG_DM_GPIO
-#if defined(CONFIG_IMX8)
-#define GPIO_TO_PORT(n) ((n / 32) - 1)
-#else
#define GPIO_TO_PORT(n) (n / 32)
-#endif
/* GPIO port description */
static unsigned long gpio_ports[] = {