]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wan/hdlc_ppp.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / drivers / net / wan / hdlc_ppp.c
index 7b8a5eae201d2dcc26d1b0598cb0cbf65472cf9b..72a7cdab424531850f51462d6b16bf40c3faea50 100644 (file)
@@ -150,11 +150,11 @@ static __be16 ppp_type_trans(struct sk_buff *skb, struct net_device *dev)
                return htons(ETH_P_HDLC);
 
        switch (data->protocol) {
-       case __constant_htons(PID_IP):
+       case cpu_to_be16(PID_IP):
                skb_pull(skb, sizeof(struct hdlc_header));
                return htons(ETH_P_IP);
 
-       case __constant_htons(PID_IPV6):
+       case cpu_to_be16(PID_IPV6):
                skb_pull(skb, sizeof(struct hdlc_header));
                return htons(ETH_P_IPV6);