Skip to content

Commit

Permalink
MIPS: Alchemy: add gpio_request/gpio_free stubs for CONFIG_GPIOLIB=n
Browse files Browse the repository at this point in the history
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 <manuel.lauss@gmail.com>
Tested-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Sep 17, 2009
1 parent 6de4c6f commit 75f4531
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/mips/include/asm/mach-au1x00/gpio-au1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */


Expand Down

0 comments on commit 75f4531

Please sign in to comment.