From bcdc0575035ed64be5cefd4d07b0cc3445d4097e Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 20 Sep 2019 07:34:55 -0500 Subject: [PATCH] drivers: gpio_dw: 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_dw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio_dw.h b/drivers/gpio/gpio_dw.h index 40bed89a893..8052722282e 100644 --- a/drivers/gpio/gpio_dw.h +++ b/drivers/gpio/gpio_dw.h @@ -32,6 +32,8 @@ struct gpio_dw_config { }; struct gpio_dw_runtime { + /* gpio_driver_data needs to be first */ + struct gpio_driver_data common; u32_t base_addr; #ifdef CONFIG_GPIO_DW_CLOCK_GATE struct device *clock;