diff options
Diffstat (limited to 'drivers/net/wan/hdlc_cisco.c')
-rw-r--r-- | drivers/net/wan/hdlc_cisco.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wan/hdlc_cisco.c b/drivers/net/wan/hdlc_cisco.c index af3fd4fead8a..cf5fd17ad707 100644 --- a/drivers/net/wan/hdlc_cisco.c +++ b/drivers/net/wan/hdlc_cisco.c | |||
@@ -117,7 +117,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type, | |||
117 | data->type = htonl(type); | 117 | data->type = htonl(type); |
118 | data->par1 = par1; | 118 | data->par1 = par1; |
119 | data->par2 = par2; | 119 | data->par2 = par2; |
120 | data->rel = __constant_htons(0xFFFF); | 120 | data->rel = cpu_to_be16(0xFFFF); |
121 | /* we will need do_div here if 1000 % HZ != 0 */ | 121 | /* we will need do_div here if 1000 % HZ != 0 */ |
122 | data->time = htonl((jiffies - INITIAL_JIFFIES) * (1000 / HZ)); | 122 | data->time = htonl((jiffies - INITIAL_JIFFIES) * (1000 / HZ)); |
123 | 123 | ||
@@ -136,20 +136,20 @@ static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
136 | struct hdlc_header *data = (struct hdlc_header*)skb->data; | 136 | struct hdlc_header *data = (struct hdlc_header*)skb->data; |
137 | 137 | ||
138 | if (skb->len < sizeof(struct hdlc_header)) | 138 | if (skb->len < sizeof(struct hdlc_header)) |
139 | return __constant_htons(ETH_P_HDLC); | 139 | return cpu_to_be16(ETH_P_HDLC); |
140 | 140 | ||
141 | if (data->address != CISCO_MULTICAST && | 141 | if (data->address != CISCO_MULTICAST && |
142 | data->address != CISCO_UNICAST) | 142 | data->address != CISCO_UNICAST) |
143 | return __constant_htons(ETH_P_HDLC); | 143 | return cpu_to_be16(ETH_P_HDLC); |
144 | 144 | ||
145 | switch(data->protocol) { | 145 | switch(data->protocol) { |
146 | case __constant_htons(ETH_P_IP): | 146 | case cpu_to_be16(ETH_P_IP): |
147 | case __constant_htons(ETH_P_IPX): | 147 | case cpu_to_be16(ETH_P_IPX): |
148 | case __constant_htons(ETH_P_IPV6): | 148 | case cpu_to_be16(ETH_P_IPV6): |
149 | skb_pull(skb, sizeof(struct hdlc_header)); | 149 | skb_pull(skb, sizeof(struct hdlc_header)); |
150 | return data->protocol; | 150 | return data->protocol; |
151 | default: | 151 | default: |
152 | return __constant_htons(ETH_P_HDLC); | 152 | return cpu_to_be16(ETH_P_HDLC); |
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||
@@ -194,7 +194,7 @@ static int cisco_rx(struct sk_buff *skb) | |||
194 | case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */ | 194 | case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */ |
195 | in_dev = dev->ip_ptr; | 195 | in_dev = dev->ip_ptr; |
196 | addr = 0; | 196 | addr = 0; |
197 | mask = __constant_htonl(~0); /* is the mask correct? */ | 197 | mask = ~cpu_to_be32(0); /* is the mask correct? */ |
198 | 198 | ||
199 | if (in_dev != NULL) { | 199 | if (in_dev != NULL) { |
200 | struct in_ifaddr **ifap = &in_dev->ifa_list; | 200 | struct in_ifaddr **ifap = &in_dev->ifa_list; |