aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-05-21 06:09:14 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-21 12:50:21 -0400
commita161bb0510d793a450127c12160309907af3d3f7 (patch)
treedcc93719b5c7e85a21c2169e4f6e7da77ad8bf1d
parent140a9aec22f454120d1953f24cd2b5338b6141e2 (diff)
Blackfin arch: mark a bunch of local functions as static
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/blackfin/kernel/bfin_dma_5xx.c2
-rw-r--r--arch/blackfin/kernel/bfin_gpio.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/bfin_dma_5xx.c b/arch/blackfin/kernel/bfin_dma_5xx.c
index 8ea079ebecb..14314240718 100644
--- a/arch/blackfin/kernel/bfin_dma_5xx.c
+++ b/arch/blackfin/kernel/bfin_dma_5xx.c
@@ -119,7 +119,7 @@ static void clear_dma_buffer(unsigned int channel)
119 SSYNC(); 119 SSYNC();
120} 120}
121 121
122int __init blackfin_dma_init(void) 122static int __init blackfin_dma_init(void)
123{ 123{
124 int i; 124 int i;
125 125
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index e9f24a9a46b..bc162529119 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
147void port_setup(unsigned short gpio, unsigned short usage) 147static 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
163void default_gpio(unsigned short gpio) 163static 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 180static int __init bfin_gpio_init(void)
181int __init bfin_gpio_init(void)
182{ 181{
183 int i; 182 int i;
184 183