Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arnd Bergmann and committed by
Bartosz Golaszewski
ebdffe5b 4cf381bf

+1
+1
drivers/gpio/gpio-sa1100.c
··· 12 12 #include <soc/sa1100/pwer.h> 13 13 #include <mach/hardware.h> 14 14 #include <mach/irqs.h> 15 + #include <mach/generic.h> 15 16 16 17 struct sa1100_gpio_chip { 17 18 struct gpio_chip chip;