Changeset 11907


Ignore:
Timestamp:
2008-07-22T13:22:41+02:00 (8 years ago)
Author:
juhosg
Message:

[brcm47xx] fix compile error (closes #3799)

Location:
trunk/target/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-2.6.25/710-add-gpio-is-valid.patch

    r11887 r11907  
    3232 static inline int gpio_request(unsigned gpio, const char *label) 
    3333 { 
    34 @@ -52,6 +53,10 @@ static inline int gpio_direction_output( 
     34@@ -52,6 +53,8 @@ static inline int gpio_direction_output( 
    3535        return bcm47xx_gpio_direction_output(gpio, value); 
    3636 } 
    3737  
    38 +static inline int gpio_is_valid(int gpio) 
    39 +{ 
    40 +       return bcm47xx_gpio_is_valid(gpio); 
    41 +} 
     38+#define gpio_is_valid  bcm47xx_gpio_is_valid 
     39+ 
    4240  
    4341 /* cansleep wrappers */ 
  • trunk/target/linux/generic-2.6/patches-2.6.25/961-backport_gpio_define_gpio_valid.patch

    r11894 r11907  
    122122 struct module; 
    123123  
    124 @@ -99,6 +105,12 @@ extern int __gpio_cansleep(unsigned gpio); 
     124@@ -99,6 +105,16 @@ extern int __gpio_cansleep(unsigned gpio); 
    125125  
    126126 #else 
    127127  
    128 +static inline int gpio_is_valid(int number) 
     128+static inline int __gpio_is_valid(int number) 
    129129+{ 
    130130+       /* only non-negative numbers are valid */ 
     
    132132+} 
    133133+ 
     134+#ifndef gpio_is_valid 
     135+#define gpio_is_valid  __gpio_is_valid 
     136+#endif 
     137+ 
    134138 /* platforms that don't directly support access to GPIOs through I2C, SPI, 
    135139  * or other blocking infrastructure can use these wrappers. 
Note: See TracChangeset for help on using the changeset viewer.