]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/dsa/mv88e6123_61_65.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / net / dsa / mv88e6123_61_65.c
index 555b164082fc271d6a15c83ecf398da85d9da9e4..1003187222146c2a7708258369c7a30d15243762 100644 (file)
@@ -394,7 +394,7 @@ static int mv88e6123_61_65_get_sset_count(struct dsa_switch *ds)
 }
 
 static struct dsa_switch_driver mv88e6123_61_65_switch_driver = {
-       .tag_protocol           = __constant_htons(ETH_P_EDSA),
+       .tag_protocol           = cpu_to_be16(ETH_P_EDSA),
        .priv_size              = sizeof(struct mv88e6xxx_priv_state),
        .probe                  = mv88e6123_61_65_probe,
        .setup                  = mv88e6123_61_65_setup,
@@ -407,14 +407,14 @@ static struct dsa_switch_driver mv88e6123_61_65_switch_driver = {
        .get_sset_count         = mv88e6123_61_65_get_sset_count,
 };
 
-int __init mv88e6123_61_65_init(void)
+static int __init mv88e6123_61_65_init(void)
 {
        register_switch_driver(&mv88e6123_61_65_switch_driver);
        return 0;
 }
 module_init(mv88e6123_61_65_init);
 
-void __exit mv88e6123_61_65_cleanup(void)
+static void __exit mv88e6123_61_65_cleanup(void)
 {
        unregister_switch_driver(&mv88e6123_61_65_switch_driver);
 }