diff options
| -rw-r--r-- | arch/mips/include/asm/mach-rc32434/gpio.h | 1 | ||||
| -rw-r--r-- | arch/mips/rb532/gpio.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mach-rc32434/gpio.h b/arch/mips/include/asm/mach-rc32434/gpio.h index ca92c81f4067..3cb50d17b62d 100644 --- a/arch/mips/include/asm/mach-rc32434/gpio.h +++ b/arch/mips/include/asm/mach-rc32434/gpio.h | |||
| @@ -82,5 +82,6 @@ struct rb532_gpio_reg { | |||
| 82 | 82 | ||
| 83 | extern void rb532_gpio_set_ilevel(int bit, unsigned gpio); | 83 | extern void rb532_gpio_set_ilevel(int bit, unsigned gpio); |
| 84 | extern void rb532_gpio_set_istat(int bit, unsigned gpio); | 84 | extern void rb532_gpio_set_istat(int bit, unsigned gpio); |
| 85 | extern void rb532_gpio_set_func(unsigned gpio); | ||
| 85 | 86 | ||
| 86 | #endif /* _RC32434_GPIO_H_ */ | 87 | #endif /* _RC32434_GPIO_H_ */ |
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index f33868159826..37de05d595e7 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c | |||
| @@ -174,10 +174,11 @@ EXPORT_SYMBOL(rb532_gpio_set_istat); | |||
| 174 | /* | 174 | /* |
| 175 | * Configure GPIO alternate function | 175 | * Configure GPIO alternate function |
| 176 | */ | 176 | */ |
| 177 | static void rb532_gpio_set_func(int bit, unsigned gpio) | 177 | void rb532_gpio_set_func(unsigned gpio) |
| 178 | { | 178 | { |
| 179 | rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOFUNC); | 179 | rb532_set_bit(1, gpio, rb532_gpio_chip->regbase + GPIOFUNC); |
| 180 | } | 180 | } |
| 181 | EXPORT_SYMBOL(rb532_gpio_set_func); | ||
| 181 | 182 | ||
| 182 | int __init rb532_gpio_init(void) | 183 | int __init rb532_gpio_init(void) |
| 183 | { | 184 | { |
