gpio: sa1100: include <mach/generic.h>

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 <arnd@arndb.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Arnd Bergmann 2023-05-17 11:52:53 +02:00 committed by Bartosz Golaszewski
parent 4cf381bf8e
commit ebdffe5b1f
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@
#include <soc/sa1100/pwer.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/generic.h>
struct sa1100_gpio_chip {
struct gpio_chip chip;