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 <kumar.gala@linaro.org>
This commit is contained in:
parent
5a34407daa
commit
bcdc057503
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ struct gpio_dw_config {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gpio_dw_runtime {
|
struct gpio_dw_runtime {
|
||||||
|
/* gpio_driver_data needs to be first */
|
||||||
|
struct gpio_driver_data common;
|
||||||
u32_t base_addr;
|
u32_t base_addr;
|
||||||
#ifdef CONFIG_GPIO_DW_CLOCK_GATE
|
#ifdef CONFIG_GPIO_DW_CLOCK_GATE
|
||||||
struct device *clock;
|
struct device *clock;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue