diff options
Diffstat (limited to 'arch/blackfin/kernel/bfin_gpio.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index e9f24a9a46ba..3f49fae1cb1f 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -144,7 +144,7 @@ inline int check_gpio(unsigned short gpio) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | #ifdef BF537_FAMILY | 146 | #ifdef BF537_FAMILY |
147 | void port_setup(unsigned short gpio, unsigned short usage) | 147 | static void port_setup(unsigned short gpio, unsigned short usage) |
148 | { | 148 | { |
149 | if (usage == GPIO_USAGE) { | 149 | if (usage == GPIO_USAGE) { |
150 | if (*port_fer[gpio_bank(gpio)] & gpio_bit(gpio)) | 150 | if (*port_fer[gpio_bank(gpio)] & gpio_bit(gpio)) |
@@ -160,7 +160,7 @@ void port_setup(unsigned short gpio, unsigned short usage) | |||
160 | #endif | 160 | #endif |
161 | 161 | ||
162 | 162 | ||
163 | void default_gpio(unsigned short gpio) | 163 | static void default_gpio(unsigned short gpio) |
164 | { | 164 | { |
165 | unsigned short bank,bitmask; | 165 | unsigned short bank,bitmask; |
166 | 166 | ||
@@ -177,8 +177,7 @@ void default_gpio(unsigned short gpio) | |||
177 | gpio_bankb[bank]->edge &= ~bitmask; | 177 | gpio_bankb[bank]->edge &= ~bitmask; |
178 | } | 178 | } |
179 | 179 | ||
180 | 180 | static int __init bfin_gpio_init(void) | |
181 | int __init bfin_gpio_init(void) | ||
182 | { | 181 | { |
183 | int i; | 182 | int i; |
184 | 183 | ||
@@ -189,9 +188,9 @@ int __init bfin_gpio_init(void) | |||
189 | 188 | ||
190 | #if defined(BF537_FAMILY) && (defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)) | 189 | #if defined(BF537_FAMILY) && (defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)) |
191 | # if defined(CONFIG_BFIN_MAC_RMII) | 190 | # if defined(CONFIG_BFIN_MAC_RMII) |
192 | reserved_map[PORT_H] = 0xC373; | 191 | reserved_map[gpio_bank(PORT_H)] = 0xC373; |
193 | # else | 192 | # else |
194 | reserved_map[PORT_H] = 0xFFFF; | 193 | reserved_map[gpio_bank(PORT_H)] = 0xFFFF; |
195 | # endif | 194 | # endif |
196 | #endif | 195 | #endif |
197 | 196 | ||