diff --git a/include/drivers/gpio/gpio_mmio32.h b/include/drivers/gpio/gpio_mmio32.h index 1b8c431c7ed..9392ab00626 100644 --- a/include/drivers/gpio/gpio_mmio32.h +++ b/include/drivers/gpio/gpio_mmio32.h @@ -17,6 +17,8 @@ struct gpio_mmio32_config { }; struct gpio_mmio32_context { + /* gpio_driver_data needs to be first */ + struct gpio_driver_data common; const struct gpio_mmio32_config *config; u32_t invert; /* Mask of 'reg' bits that should be inverted */ };