diff --git a/drivers/gpio/gpio_dw.c b/drivers/gpio/gpio_dw.c index 6b3687e7eef..cd1a97a6afa 100644 --- a/drivers/gpio/gpio_dw.c +++ b/drivers/gpio/gpio_dw.c @@ -196,7 +196,7 @@ static int gpio_dw_pin_interrupt_configure(const struct device *port, } /* Interrupt to be enabled but pin is not set to input */ - dir_reg = dw_read(port_base_addr, dir_port) & BIT(pin); + dir_reg = dw_read(base_addr, dir_port) & BIT(pin); if (dir_reg != 0U) { return -EINVAL; } @@ -245,7 +245,7 @@ static inline void dw_pin_config(const struct device *port, /* Set init value then direction */ pin_is_output = (flags & GPIO_OUTPUT) != 0U; - dw_set_bit(port_base_addr, dir_port, pin, pin_is_output); + dw_set_bit(base_addr, dir_port, pin, pin_is_output); if (pin_is_output) { if ((flags & GPIO_OUTPUT_INIT_HIGH) != 0U) {