From: Arnd Bergmann Date: Wed, 17 May 2023 09:52:53 +0000 (+0200) Subject: gpio: sa1100: include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ebdffe5b1fffa62c91800474c25e3c9f63be2aad;p=linux.git gpio: sa1100: include sa1100_init_gpio() is declared in a machine specific header so it can be called from platform code, but the definition is in the device driver, which causes a warning: drivers/gpio/gpio-sa1100.c:310:13: error: no previous prototype for 'sa1100_init_gpio' [-Werror=missing-prototypes] It's already possible to include mach/generic.h from drivers, so add this one here as well. Signed-off-by: Arnd Bergmann Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-sa1100.c b/drivers/gpio/gpio-sa1100.c index edff5e81489ff..242dad763ac4d 100644 --- a/drivers/gpio/gpio-sa1100.c +++ b/drivers/gpio/gpio-sa1100.c @@ -12,6 +12,7 @@ #include #include #include +#include struct sa1100_gpio_chip { struct gpio_chip chip;