diff options
Diffstat (limited to 'drivers/net/skfp/skfddi.c')
-rw-r--r-- | drivers/net/skfp/skfddi.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 1921a54ea995..91adc38d5710 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c | |||
@@ -78,13 +78,13 @@ static const char * const boot_msg = | |||
78 | #include <linux/kernel.h> | 78 | #include <linux/kernel.h> |
79 | #include <linux/errno.h> | 79 | #include <linux/errno.h> |
80 | #include <linux/ioport.h> | 80 | #include <linux/ioport.h> |
81 | #include <linux/slab.h> | ||
82 | #include <linux/interrupt.h> | 81 | #include <linux/interrupt.h> |
83 | #include <linux/pci.h> | 82 | #include <linux/pci.h> |
84 | #include <linux/netdevice.h> | 83 | #include <linux/netdevice.h> |
85 | #include <linux/fddidevice.h> | 84 | #include <linux/fddidevice.h> |
86 | #include <linux/skbuff.h> | 85 | #include <linux/skbuff.h> |
87 | #include <linux/bitops.h> | 86 | #include <linux/bitops.h> |
87 | #include <linux/gfp.h> | ||
88 | 88 | ||
89 | #include <asm/byteorder.h> | 89 | #include <asm/byteorder.h> |
90 | #include <asm/io.h> | 90 | #include <asm/io.h> |
@@ -852,7 +852,7 @@ static void skfp_ctl_set_multicast_list(struct net_device *dev) | |||
852 | static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) | 852 | static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) |
853 | { | 853 | { |
854 | struct s_smc *smc = netdev_priv(dev); | 854 | struct s_smc *smc = netdev_priv(dev); |
855 | struct dev_mc_list *dmi; | 855 | struct netdev_hw_addr *ha; |
856 | 856 | ||
857 | /* Enable promiscuous mode, if necessary */ | 857 | /* Enable promiscuous mode, if necessary */ |
858 | if (dev->flags & IFF_PROMISC) { | 858 | if (dev->flags & IFF_PROMISC) { |
@@ -876,13 +876,13 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) | |||
876 | /* use exact filtering */ | 876 | /* use exact filtering */ |
877 | 877 | ||
878 | // point to first multicast addr | 878 | // point to first multicast addr |
879 | netdev_for_each_mc_addr(dmi, dev) { | 879 | netdev_for_each_mc_addr(ha, dev) { |
880 | mac_add_multicast(smc, | 880 | mac_add_multicast(smc, |
881 | (struct fddi_addr *)dmi->dmi_addr, | 881 | (struct fddi_addr *)ha->addr, |
882 | 1); | 882 | 1); |
883 | 883 | ||
884 | pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n", | 884 | pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n", |
885 | dmi->dmi_addr); | 885 | ha->addr); |
886 | } | 886 | } |
887 | 887 | ||
888 | } else { // more MC addresses than HW supports | 888 | } else { // more MC addresses than HW supports |
@@ -1076,7 +1076,6 @@ static netdev_tx_t skfp_send_pkt(struct sk_buff *skb, | |||
1076 | if (bp->QueueSkb == 0) { | 1076 | if (bp->QueueSkb == 0) { |
1077 | netif_stop_queue(dev); | 1077 | netif_stop_queue(dev); |
1078 | } | 1078 | } |
1079 | dev->trans_start = jiffies; | ||
1080 | return NETDEV_TX_OK; | 1079 | return NETDEV_TX_OK; |
1081 | 1080 | ||
1082 | } // skfp_send_pkt | 1081 | } // skfp_send_pkt |