diff options
Diffstat (limited to 'drivers/net/can/at91_can.c')
-rw-r--r-- | drivers/net/can/at91_can.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index a2f29a38798a..2d8bd86bc5e2 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/string.h> | 35 | #include <linux/string.h> |
36 | #include <linux/types.h> | 36 | #include <linux/types.h> |
37 | 37 | ||
38 | #include <linux/can.h> | ||
39 | #include <linux/can/dev.h> | 38 | #include <linux/can/dev.h> |
40 | #include <linux/can/error.h> | 39 | #include <linux/can/error.h> |
41 | 40 | ||
@@ -376,7 +375,6 @@ static netdev_tx_t at91_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
376 | at91_write(priv, AT91_MCR(mb), reg_mcr); | 375 | at91_write(priv, AT91_MCR(mb), reg_mcr); |
377 | 376 | ||
378 | stats->tx_bytes += cf->can_dlc; | 377 | stats->tx_bytes += cf->can_dlc; |
379 | dev->trans_start = jiffies; | ||
380 | 378 | ||
381 | /* _NOTE_: substract AT91_MB_TX_FIRST offset from mb! */ | 379 | /* _NOTE_: substract AT91_MB_TX_FIRST offset from mb! */ |
382 | can_put_echo_skb(skb, dev, mb - AT91_MB_TX_FIRST); | 380 | can_put_echo_skb(skb, dev, mb - AT91_MB_TX_FIRST); |
@@ -662,7 +660,6 @@ static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) | |||
662 | at91_poll_err_frame(dev, cf, reg_sr); | 660 | at91_poll_err_frame(dev, cf, reg_sr); |
663 | netif_receive_skb(skb); | 661 | netif_receive_skb(skb); |
664 | 662 | ||
665 | dev->last_rx = jiffies; | ||
666 | dev->stats.rx_packets++; | 663 | dev->stats.rx_packets++; |
667 | dev->stats.rx_bytes += cf->can_dlc; | 664 | dev->stats.rx_bytes += cf->can_dlc; |
668 | 665 | ||
@@ -899,7 +896,6 @@ static void at91_irq_err(struct net_device *dev) | |||
899 | at91_irq_err_state(dev, cf, new_state); | 896 | at91_irq_err_state(dev, cf, new_state); |
900 | netif_rx(skb); | 897 | netif_rx(skb); |
901 | 898 | ||
902 | dev->last_rx = jiffies; | ||
903 | dev->stats.rx_packets++; | 899 | dev->stats.rx_packets++; |
904 | dev->stats.rx_bytes += cf->can_dlc; | 900 | dev->stats.rx_bytes += cf->can_dlc; |
905 | 901 | ||