MIPS: Alchemy: add gpio_request/gpio_free stubs for CONFIG_GPIOLIB=n
authorManuel Lauss <[email protected]>
Fri, 28 Aug 2009 09:26:58 +0000 (11:26 +0200)
committerRalf Baechle <[email protected]>
Thu, 17 Sep 2009 18:07:42 +0000 (20:07 +0200)
Some drivers use gpio_request/gpio_free regardless of whether
gpiolib is actually built;  add stubs to work around the ensuing
compile failures.

Signed-off-by: Manuel Lauss <[email protected]>
Tested-by: Florian Fainelli <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/include/asm/mach-au1x00/gpio-au1000.h

index 127d4ed9f073b7ecb95a8acde70132f5051e363f..feea00148b5d5fd813956c0d39b73cb3b157fab0 100644 (file)
@@ -578,6 +578,15 @@ static inline int irq_to_gpio(int irq)
        return alchemy_irq_to_gpio(irq);
 }
 
+static inline int gpio_request(unsigned gpio, const char *label)
+{
+       return 0;
+}
+
+static inline void gpio_free(unsigned gpio)
+{
+}
+
 #endif /* !CONFIG_ALCHEMY_GPIO_INDIRECT */