]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wan/lapbether.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / drivers / net / wan / lapbether.c
index 24fd613466b7ea0925d5c98c5aada6a82a1fc6cc..da9dcf59de243d8bbfad5458e1f1d9ecb0491f6c 100644 (file)
@@ -143,7 +143,6 @@ static int lapbeth_data_indication(struct net_device *dev, struct sk_buff *skb)
        *ptr = 0x00;
 
        skb->protocol = x25_type_trans(skb, dev);
-       skb->dev->last_rx = jiffies;
        return netif_rx(skb);
 }
 
@@ -235,7 +234,6 @@ static void lapbeth_connected(struct net_device *dev, int reason)
        *ptr = 0x01;
 
        skb->protocol = x25_type_trans(skb, dev);
-       skb->dev->last_rx = jiffies;
        netif_rx(skb);
 }
 
@@ -253,7 +251,6 @@ static void lapbeth_disconnected(struct net_device *dev, int reason)
        *ptr = 0x02;
 
        skb->protocol = x25_type_trans(skb, dev);
-       skb->dev->last_rx = jiffies;
        netif_rx(skb);
 }
 
@@ -425,7 +422,7 @@ static int lapbeth_device_event(struct notifier_block *this,
 /* ------------------------------------------------------------------------ */
 
 static struct packet_type lapbeth_packet_type = {
-       .type = __constant_htons(ETH_P_DEC),
+       .type = cpu_to_be16(ETH_P_DEC),
        .func = lapbeth_rcv,
 };