]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpiolib: fix non CONFIG_GPIOLIB functions
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:42:44 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:44:46 +0000 (15:44 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/asm-generic/gpio.h

index 54e02e651058392eff09778ebd7c96e0618008b0..f9acd787e3c8c5afb37f2fcb1198b2cd292a33eb 100644 (file)
@@ -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