From e6baf82abd46a0869a1ea77b9334345b402e615c Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Tue, 22 Jul 2008 11:22:41 +0000 Subject: fix compile error (closes #3799) SVN-Revision: 11907 --- target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch') diff --git a/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch b/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch index bca3b4eaae..4cb7642e88 100644 --- a/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch +++ b/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch @@ -31,14 +31,12 @@ Index: linux-2.6.25.10/include/asm-mips/mach-bcm47xx/gpio.h static inline int gpio_request(unsigned gpio, const char *label) { -@@ -52,6 +53,10 @@ static inline int gpio_direction_output( +@@ -52,6 +53,8 @@ static inline int gpio_direction_output( return bcm47xx_gpio_direction_output(gpio, value); } -+static inline int gpio_is_valid(int gpio) -+{ -+ return bcm47xx_gpio_is_valid(gpio); -+} ++#define gpio_is_valid bcm47xx_gpio_is_valid ++ /* cansleep wrappers */ #include -- cgit v1.2.3