* (mb - AT91_MB_TX_FIRST);
*
*/
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
static int at91_start_xmit(struct sk_buff *skb, struct net_device *dev)
#else
static netdev_tx_t at91_start_xmit(struct sk_buff *skb, struct net_device *dev)
netif_receive_skb(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
stats->rx_packets++;
at91_read_mb(dev, mb, cf);
netif_receive_skb(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
stats->rx_packets++;
at91_poll_err_frame(dev, cf, reg_sr);
netif_receive_skb(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
dev->stats.rx_packets++;
at91_irq_err_state(dev, cf, new_state);
netif_rx(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
dev->stats.rx_packets++;
netif_rx(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
stats->rx_packets++;
netif_rx(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
stats->rx_packets++;
netif_rx(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
dev->last_rx = jiffies;
#endif
stats->rx_packets++;
return 0;
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
static int esd331_start_xmit(struct sk_buff *skb, struct net_device *dev)
#else
static netdev_tx_t esd331_start_xmit(struct sk_buff *skb,
dev_err(&spi->dev, "MCP251x didn't wake-up\n");
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
static int mcp251x_hard_start_xmit(struct sk_buff *skb, struct net_device *net)
#else
static netdev_tx_t mcp251x_hard_start_xmit(struct sk_buff *skb,
&cf, sizeof(struct can_frame));
netif_rx(skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
sl->dev->last_rx = jiffies;
#endif
stats->rx_packets++;
******************************************/
/* Send a can_frame to a TTY queue. */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
static int slc_xmit(struct sk_buff *skb, struct net_device *dev)
#else
static netdev_tx_t slc_xmit(struct sk_buff *skb, struct net_device *dev)