]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/can/af_can.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / net / can / af_can.c
index fa417ca6cbe6c88cf97c305ed399681125acdc03..d90e8dd975fcf05d842be52fd41ef8e1f369d411 100644 (file)
@@ -828,7 +828,7 @@ static int can_notifier(struct notifier_block *nb, unsigned long msg,
  */
 
 static struct packet_type can_packet __read_mostly = {
-       .type = __constant_htons(ETH_P_CAN),
+       .type = cpu_to_be16(ETH_P_CAN),
        .dev  = NULL,
        .func = can_rcv,
 };