net: replace uses of __constant_{endian}
[deliverable/linux.git] / net / dsa / mv88e6131.c
index 36e01eb863a0af7f778dd3d748271b918bc4166f..70fae2444cb65e64828e07bcbd9aef5bf35f2b65 100644 (file)
@@ -353,7 +353,7 @@ static int mv88e6131_get_sset_count(struct dsa_switch *ds)
 }
 
 static struct dsa_switch_driver mv88e6131_switch_driver = {
-       .tag_protocol           = __constant_htons(ETH_P_DSA),
+       .tag_protocol           = cpu_to_be16(ETH_P_DSA),
        .priv_size              = sizeof(struct mv88e6xxx_priv_state),
        .probe                  = mv88e6131_probe,
        .setup                  = mv88e6131_setup,
@@ -366,14 +366,14 @@ static struct dsa_switch_driver mv88e6131_switch_driver = {
        .get_sset_count         = mv88e6131_get_sset_count,
 };
 
-int __init mv88e6131_init(void)
+static int __init mv88e6131_init(void)
 {
        register_switch_driver(&mv88e6131_switch_driver);
        return 0;
 }
 module_init(mv88e6131_init);
 
-void __exit mv88e6131_cleanup(void)
+static void __exit mv88e6131_cleanup(void)
 {
        unregister_switch_driver(&mv88e6131_switch_driver);
 }
This page took 0.028239 seconds and 5 git commands to generate.