X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/92aeca315789b390e50bc605f267eaf372c49801..5b4b815911a7914c4ebe5ff8fc58505ae2579aa2:/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch?ds=inline 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 4cb7642e8..b06f08e1c 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 @@ -1,8 +1,6 @@ Add gpio_is_valid() for bcm47xx -Index: linux-2.6.25.10/arch/mips/bcm47xx/gpio.c -=================================================================== ---- linux-2.6.25.10.orig/arch/mips/bcm47xx/gpio.c 2008-07-20 20:48:44.000000000 +0200 -+++ linux-2.6.25.10/arch/mips/bcm47xx/gpio.c 2008-07-20 20:57:55.000000000 +0200 +--- a/arch/mips/bcm47xx/gpio.c ++++ b/arch/mips/bcm47xx/gpio.c @@ -77,3 +77,15 @@ int bcm47xx_gpio_direction_output(unsign } EXPORT_SYMBOL_GPL(bcm47xx_gpio_direction_output); @@ -19,10 +17,8 @@ Index: linux-2.6.25.10/arch/mips/bcm47xx/gpio.c + return 0; +} +EXPORT_SYMBOL_GPL(bcm47xx_gpio_is_valid); -Index: linux-2.6.25.10/include/asm-mips/mach-bcm47xx/gpio.h -=================================================================== ---- linux-2.6.25.10.orig/include/asm-mips/mach-bcm47xx/gpio.h 2008-07-20 20:48:44.000000000 +0200 -+++ linux-2.6.25.10/include/asm-mips/mach-bcm47xx/gpio.h 2008-07-20 20:49:20.000000000 +0200 +--- a/include/asm-mips/mach-bcm47xx/gpio.h ++++ b/include/asm-mips/mach-bcm47xx/gpio.h @@ -17,6 +17,7 @@ extern int bcm47xx_gpio_get_value(unsign extern void bcm47xx_gpio_set_value(unsigned gpio, int value); extern int bcm47xx_gpio_direction_input(unsigned gpio);