From d91cb6ec7ce43806685f39bb109a00c77947674b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 20 Sep 2019 07:36:21 -0500 Subject: [PATCH] drivers: gpio_mchp_xec: 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 --- drivers/gpio/gpio_mchp_xec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio_mchp_xec.c b/drivers/gpio/gpio_mchp_xec.c index c31a7d8d5a5..505e9ba9ce5 100644 --- a/drivers/gpio/gpio_mchp_xec.c +++ b/drivers/gpio/gpio_mchp_xec.c @@ -22,6 +22,8 @@ static const u32_t valid_ctrl_masks[NUM_MCHP_GPIO_PORTS] = { }; struct gpio_xec_data { + /* gpio_driver_data needs to be first */ + struct gpio_driver_data common; /* port ISR callback routine address */ sys_slist_t callbacks; /* pin callback routine enable flags, by pin number */