From cb9c3efaad465450e9712da9a4ce376b1348ab66 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 20 Sep 2019 07:37:49 -0500 Subject: [PATCH] drivers: gpio_mmio32: Add gpio_driver_data to driver data Add gpio_driver_data as the first element in the driver data as the gpio core expects this. Signed-off-by: Kumar Gala --- include/drivers/gpio/gpio_mmio32.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ };