]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Fix kernel version depency from commit rev 1060
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Wed, 23 Sep 2009 18:03:35 +0000 (18:03 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Wed, 23 Sep 2009 18:03:35 +0000 (18:03 +0000)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1063 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/drivers/net/can/at91_can.c
kernel/2.6/drivers/net/can/dev.c
kernel/2.6/drivers/net/can/esd_pci331.c
kernel/2.6/drivers/net/can/mcp251x.c
kernel/2.6/drivers/net/can/slcan.c

index 35aa90ca28f5dc5f27bb4d3bfd232a41e35feb64..0b6e9837d46c079a1692b609e05f0da8fb8de373 100644 (file)
@@ -357,7 +357,7 @@ static void at91_chip_stop(struct net_device *dev, enum can_state state)
  *                 (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)
@@ -473,7 +473,7 @@ static void at91_rx_overflow_err(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++;
@@ -536,7 +536,7 @@ static void at91_read_msg(struct net_device *dev, unsigned int mb)
        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++;
@@ -692,7 +692,7 @@ static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr)
        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++;
@@ -931,7 +931,7 @@ static void at91_irq_err(struct net_device *dev)
        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++;
index fd3d06e7fe6adb6aa016bf86048b7afb6152431e..111e7a9eb00169efc09ee4ecfbd64410dd8864b0 100644 (file)
@@ -411,7 +411,7 @@ void can_restart(unsigned long data)
 
        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++;
index 5fe879d7ab0e10f421be1fb943c418634e3a5764..d19578c1cc692642246bfe3db17fe88a0b1a90f2 100644 (file)
@@ -460,7 +460,7 @@ static int esd331_create_err_frame(struct net_device *dev, canid_t idflags,
 
        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++;
@@ -513,7 +513,7 @@ static void esd331_irq_rx(struct net_device *dev, struct esd331_can_msg *msg,
 
        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++;
@@ -692,7 +692,7 @@ static int esd331_close(struct net_device *dev)
        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,
index b08c9237a61635f846ca8734f97d8b0ea26f4127..3f92d17b8d57589a8009ac06b5a1d7b496245e1f 100644 (file)
@@ -483,7 +483,7 @@ static void mcp251x_hw_wakeup(struct spi_device *spi)
                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,
index 0f1aa2dd93d0589aad4e6467fa6582ceb66d64a6..51c748eb9c348d02353a4779bb0b6a676a7aabe4 100644 (file)
@@ -301,7 +301,7 @@ static void slc_bump(struct slcan *sl)
               &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++;
@@ -470,7 +470,7 @@ out:
  ******************************************/
 
 /* 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)