]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipx/af_ipx.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / net / ipx / af_ipx.c
index b6e70f92e7fb016140aa393fce90fa486cc12e95..43d0ffc6d5655ab2e5b18d77c249e21a2b33e28e 100644 (file)
@@ -1959,12 +1959,12 @@ static const struct proto_ops SOCKOPS_WRAPPED(ipx_dgram_ops) = {
 SOCKOPS_WRAP(ipx_dgram, PF_IPX);
 
 static struct packet_type ipx_8023_packet_type = {
-       .type           = __constant_htons(ETH_P_802_3),
+       .type           = cpu_to_be16(ETH_P_802_3),
        .func           = ipx_rcv,
 };
 
 static struct packet_type ipx_dix_packet_type = {
-       .type           = __constant_htons(ETH_P_IPX),
+       .type           = cpu_to_be16(ETH_P_IPX),
        .func           = ipx_rcv,
 };