aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/tipc/eth_media.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c
index 9be4839e32c5..f71ba9db611e 100644
--- a/net/tipc/eth_media.c
+++ b/net/tipc/eth_media.c
@@ -140,7 +140,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr)
140 return -EDQUOT; 140 return -EDQUOT;
141 if (!eb_ptr->dev) { 141 if (!eb_ptr->dev) {
142 eb_ptr->dev = dev; 142 eb_ptr->dev = dev;
143 eb_ptr->tipc_packet_type.type = __constant_htons(ETH_P_TIPC); 143 eb_ptr->tipc_packet_type.type = htons(ETH_P_TIPC);
144 eb_ptr->tipc_packet_type.dev = dev; 144 eb_ptr->tipc_packet_type.dev = dev;
145 eb_ptr->tipc_packet_type.func = recv_msg; 145 eb_ptr->tipc_packet_type.func = recv_msg;
146 eb_ptr->tipc_packet_type.af_packet_priv = eb_ptr; 146 eb_ptr->tipc_packet_type.af_packet_priv = eb_ptr;