diff options
Diffstat (limited to 'drivers/net/au1000_eth.c')
-rw-r--r-- | drivers/net/au1000_eth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c index fdf5937233fc..ce6f1ac25df8 100644 --- a/drivers/net/au1000_eth.c +++ b/drivers/net/au1000_eth.c | |||
@@ -34,6 +34,7 @@ | |||
34 | * | 34 | * |
35 | * | 35 | * |
36 | */ | 36 | */ |
37 | #include <linux/capability.h> | ||
37 | #include <linux/dma-mapping.h> | 38 | #include <linux/dma-mapping.h> |
38 | #include <linux/module.h> | 39 | #include <linux/module.h> |
39 | #include <linux/kernel.h> | 40 | #include <linux/kernel.h> |
@@ -721,7 +722,7 @@ static inline void update_rx_stats(struct net_device *dev, u32 status) | |||
721 | ps->rx_errors++; | 722 | ps->rx_errors++; |
722 | if (status & RX_MISSED_FRAME) | 723 | if (status & RX_MISSED_FRAME) |
723 | ps->rx_missed_errors++; | 724 | ps->rx_missed_errors++; |
724 | if (status & (RX_OVERLEN | RX_OVERLEN | RX_LEN_ERROR)) | 725 | if (status & (RX_OVERLEN | RX_RUNT | RX_LEN_ERROR)) |
725 | ps->rx_length_errors++; | 726 | ps->rx_length_errors++; |
726 | if (status & RX_CRC_ERROR) | 727 | if (status & RX_CRC_ERROR) |
727 | ps->rx_crc_errors++; | 728 | ps->rx_crc_errors++; |
@@ -794,8 +795,6 @@ static int au1000_rx(struct net_device *dev) | |||
794 | printk("rx len error\n"); | 795 | printk("rx len error\n"); |
795 | if (status & RX_U_CNTRL_FRAME) | 796 | if (status & RX_U_CNTRL_FRAME) |
796 | printk("rx u control frame\n"); | 797 | printk("rx u control frame\n"); |
797 | if (status & RX_MISSED_FRAME) | ||
798 | printk("rx miss\n"); | ||
799 | } | 798 | } |
800 | } | 799 | } |
801 | prxd->buff_stat = (u32)(pDB->dma_addr | RX_DMA_ENABLE); | 800 | prxd->buff_stat = (u32)(pDB->dma_addr | RX_DMA_ENABLE); |