]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/x25/af_x25.c
net: convert usage of packet_type to read_mostly
[linux-2.6-omap-h63xx.git] / net / x25 / af_x25.c
index 9fc5b023d1118a990944cbe32ff5ab2c81e07f5b..1000e9a26fdb5355f0f89f53a65245dd9e6cd548 100644 (file)
@@ -1608,8 +1608,8 @@ static const struct proto_ops SOCKOPS_WRAPPED(x25_proto_ops) = {
 
 SOCKOPS_WRAP(x25_proto, AF_X25);
 
-static struct packet_type x25_packet_type = {
-       .type = __constant_htons(ETH_P_X25),
+static struct packet_type x25_packet_type __read_mostly = {
+       .type = cpu_to_be16(ETH_P_X25),
        .func = x25_lapb_receive_frame,
 };