diff options
Diffstat (limited to 'net/dsa/mv88e6060.c')
-rw-r--r-- | net/dsa/mv88e6060.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dsa/mv88e6060.c b/net/dsa/mv88e6060.c index 54068ef251e8..85081ae9fe89 100644 --- a/net/dsa/mv88e6060.c +++ b/net/dsa/mv88e6060.c | |||
@@ -222,7 +222,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds) | |||
222 | 222 | ||
223 | for (i = 0; i < DSA_MAX_PORTS; i++) { | 223 | for (i = 0; i < DSA_MAX_PORTS; i++) { |
224 | struct net_device *dev; | 224 | struct net_device *dev; |
225 | int port_status; | 225 | int uninitialized_var(port_status); |
226 | int link; | 226 | int link; |
227 | int speed; | 227 | int speed; |
228 | int duplex; | 228 | int duplex; |
@@ -273,14 +273,14 @@ static struct dsa_switch_driver mv88e6060_switch_driver = { | |||
273 | .poll_link = mv88e6060_poll_link, | 273 | .poll_link = mv88e6060_poll_link, |
274 | }; | 274 | }; |
275 | 275 | ||
276 | int __init mv88e6060_init(void) | 276 | static int __init mv88e6060_init(void) |
277 | { | 277 | { |
278 | register_switch_driver(&mv88e6060_switch_driver); | 278 | register_switch_driver(&mv88e6060_switch_driver); |
279 | return 0; | 279 | return 0; |
280 | } | 280 | } |
281 | module_init(mv88e6060_init); | 281 | module_init(mv88e6060_init); |
282 | 282 | ||
283 | void __exit mv88e6060_cleanup(void) | 283 | static void __exit mv88e6060_cleanup(void) |
284 | { | 284 | { |
285 | unregister_switch_driver(&mv88e6060_switch_driver); | 285 | unregister_switch_driver(&mv88e6060_switch_driver); |
286 | } | 286 | } |