From: Stephen Rothwell Date: Wed, 7 Nov 2012 04:42:44 +0000 (+1100) Subject: gpiolib: fix non CONFIG_GPIOLIB functions X-Git-Tag: next-20121107~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91a777436cb96f01ec476fff5b158bb293b5fb5f;p=karo-tx-linux.git gpiolib: fix non CONFIG_GPIOLIB functions Signed-off-by: Stephen Rothwell --- diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 54e02e651058..f9acd787e3c8 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -69,10 +69,13 @@ void gpiochip_remove_pin_ranges(struct gpio_chip *chip); #else +struct gpio_chip; + static inline int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, unsigned int pin_base, unsigned int npins) { + return 0; } static inline void