diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-06-09 18:23:39 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-11 21:58:33 -0400 |
commit | 909fa882a83a5c73868ba0630654d0018d35252a (patch) | |
tree | fea34f01839876a2f2a3ba6e93a092dccb0cb146 /drivers/net/mac8390.c | |
parent | 0b1140782a68569b859b727de67eecf95a74ab44 (diff) |
drivers/net/mac8390.c: make functions static
This patch makes the following needlessly global functions static:
- mac8390_ident()
- mac8390_testio()
- mac8390_memsize()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/mac8390.c')
-rw-r--r-- | drivers/net/mac8390.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/mac8390.c b/drivers/net/mac8390.c index 9e700749bb31..98e3eb2697c9 100644 --- a/drivers/net/mac8390.c +++ b/drivers/net/mac8390.c | |||
@@ -117,8 +117,6 @@ enum mac8390_access { | |||
117 | ACCESS_16, | 117 | ACCESS_16, |
118 | }; | 118 | }; |
119 | 119 | ||
120 | extern enum mac8390_type mac8390_ident(struct nubus_dev * dev); | ||
121 | extern int mac8390_memsize(unsigned long membase); | ||
122 | extern int mac8390_memtest(struct net_device * dev); | 120 | extern int mac8390_memtest(struct net_device * dev); |
123 | static int mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev, | 121 | static int mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev, |
124 | enum mac8390_type type); | 122 | enum mac8390_type type); |
@@ -163,7 +161,7 @@ static void slow_sane_block_output(struct net_device *dev, int count, | |||
163 | static void word_memcpy_tocard(void *tp, const void *fp, int count); | 161 | static void word_memcpy_tocard(void *tp, const void *fp, int count); |
164 | static void word_memcpy_fromcard(void *tp, const void *fp, int count); | 162 | static void word_memcpy_fromcard(void *tp, const void *fp, int count); |
165 | 163 | ||
166 | enum mac8390_type __init mac8390_ident(struct nubus_dev * dev) | 164 | static enum mac8390_type __init mac8390_ident(struct nubus_dev *dev) |
167 | { | 165 | { |
168 | switch (dev->dr_sw) { | 166 | switch (dev->dr_sw) { |
169 | case NUBUS_DRSW_3COM: | 167 | case NUBUS_DRSW_3COM: |
@@ -234,7 +232,7 @@ enum mac8390_type __init mac8390_ident(struct nubus_dev * dev) | |||
234 | return MAC8390_NONE; | 232 | return MAC8390_NONE; |
235 | } | 233 | } |
236 | 234 | ||
237 | enum mac8390_access __init mac8390_testio(volatile unsigned long membase) | 235 | static enum mac8390_access __init mac8390_testio(volatile unsigned long membase) |
238 | { | 236 | { |
239 | unsigned long outdata = 0xA5A0B5B0; | 237 | unsigned long outdata = 0xA5A0B5B0; |
240 | unsigned long indata = 0x00000000; | 238 | unsigned long indata = 0x00000000; |
@@ -252,7 +250,7 @@ enum mac8390_access __init mac8390_testio(volatile unsigned long membase) | |||
252 | return ACCESS_UNKNOWN; | 250 | return ACCESS_UNKNOWN; |
253 | } | 251 | } |
254 | 252 | ||
255 | int __init mac8390_memsize(unsigned long membase) | 253 | static int __init mac8390_memsize(unsigned long membase) |
256 | { | 254 | { |
257 | unsigned long flags; | 255 | unsigned long flags; |
258 | int i, j; | 256 | int i, j; |