diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2008-12-10 18:18:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-10 18:18:31 -0500 |
commit | 5eaa65b240c5eb7bf2235eb9dd177c83e6e3832c (patch) | |
tree | 1a6b217cfc5b241b298a8765f68fcb5f711f9bc3 /net/dsa | |
parent | 2107fb8b5bf018be691afdd4c6ffaecf0c3307be (diff) |
net: Make static
Sparse asked whether these could be static.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/mv88e6060.c | 4 | ||||
-rw-r--r-- | net/dsa/mv88e6123_61_65.c | 4 | ||||
-rw-r--r-- | net/dsa/mv88e6131.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/net/dsa/mv88e6060.c b/net/dsa/mv88e6060.c index bfb4a643c860..85081ae9fe89 100644 --- a/net/dsa/mv88e6060.c +++ b/net/dsa/mv88e6060.c | |||
@@ -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 | } |
diff --git a/net/dsa/mv88e6123_61_65.c b/net/dsa/mv88e6123_61_65.c index 555b164082fc..ec8c6a0482d3 100644 --- a/net/dsa/mv88e6123_61_65.c +++ b/net/dsa/mv88e6123_61_65.c | |||
@@ -407,14 +407,14 @@ static struct dsa_switch_driver mv88e6123_61_65_switch_driver = { | |||
407 | .get_sset_count = mv88e6123_61_65_get_sset_count, | 407 | .get_sset_count = mv88e6123_61_65_get_sset_count, |
408 | }; | 408 | }; |
409 | 409 | ||
410 | int __init mv88e6123_61_65_init(void) | 410 | static int __init mv88e6123_61_65_init(void) |
411 | { | 411 | { |
412 | register_switch_driver(&mv88e6123_61_65_switch_driver); | 412 | register_switch_driver(&mv88e6123_61_65_switch_driver); |
413 | return 0; | 413 | return 0; |
414 | } | 414 | } |
415 | module_init(mv88e6123_61_65_init); | 415 | module_init(mv88e6123_61_65_init); |
416 | 416 | ||
417 | void __exit mv88e6123_61_65_cleanup(void) | 417 | static void __exit mv88e6123_61_65_cleanup(void) |
418 | { | 418 | { |
419 | unregister_switch_driver(&mv88e6123_61_65_switch_driver); | 419 | unregister_switch_driver(&mv88e6123_61_65_switch_driver); |
420 | } | 420 | } |
diff --git a/net/dsa/mv88e6131.c b/net/dsa/mv88e6131.c index 36e01eb863a0..374d46a01265 100644 --- a/net/dsa/mv88e6131.c +++ b/net/dsa/mv88e6131.c | |||
@@ -366,14 +366,14 @@ static struct dsa_switch_driver mv88e6131_switch_driver = { | |||
366 | .get_sset_count = mv88e6131_get_sset_count, | 366 | .get_sset_count = mv88e6131_get_sset_count, |
367 | }; | 367 | }; |
368 | 368 | ||
369 | int __init mv88e6131_init(void) | 369 | static int __init mv88e6131_init(void) |
370 | { | 370 | { |
371 | register_switch_driver(&mv88e6131_switch_driver); | 371 | register_switch_driver(&mv88e6131_switch_driver); |
372 | return 0; | 372 | return 0; |
373 | } | 373 | } |
374 | module_init(mv88e6131_init); | 374 | module_init(mv88e6131_init); |
375 | 375 | ||
376 | void __exit mv88e6131_cleanup(void) | 376 | static void __exit mv88e6131_cleanup(void) |
377 | { | 377 | { |
378 | unregister_switch_driver(&mv88e6131_switch_driver); | 378 | unregister_switch_driver(&mv88e6131_switch_driver); |
379 | } | 379 | } |