aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2008-12-10 18:18:31 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-10 18:18:31 -0500
commit5eaa65b240c5eb7bf2235eb9dd177c83e6e3832c (patch)
tree1a6b217cfc5b241b298a8765f68fcb5f711f9bc3 /net/dsa
parent2107fb8b5bf018be691afdd4c6ffaecf0c3307be (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.c4
-rw-r--r--net/dsa/mv88e6123_61_65.c4
-rw-r--r--net/dsa/mv88e6131.c4
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
276int __init mv88e6060_init(void) 276static 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}
281module_init(mv88e6060_init); 281module_init(mv88e6060_init);
282 282
283void __exit mv88e6060_cleanup(void) 283static 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
410int __init mv88e6123_61_65_init(void) 410static 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}
415module_init(mv88e6123_61_65_init); 415module_init(mv88e6123_61_65_init);
416 416
417void __exit mv88e6123_61_65_cleanup(void) 417static 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
369int __init mv88e6131_init(void) 369static 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}
374module_init(mv88e6131_init); 374module_init(mv88e6131_init);
375 375
376void __exit mv88e6131_cleanup(void) 376static void __exit mv88e6131_cleanup(void)
377{ 377{
378 unregister_switch_driver(&mv88e6131_switch_driver); 378 unregister_switch_driver(&mv88e6131_switch_driver);
379} 379}