aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eepro.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 00:04:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 00:04:44 -0400
commitf8965467f366fd18f01feafb5db10512d7b4422c (patch)
tree3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/eepro.c
parenta26272e5200765691e67d6780e52b32498fdb659 (diff)
parent2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits) qlcnic: adding co maintainer ixgbe: add support for active DA cables ixgbe: dcb, do not tag tc_prio_control frames ixgbe: fix ixgbe_tx_is_paused logic ixgbe: always enable vlan strip/insert when DCB is enabled ixgbe: remove some redundant code in setting FCoE FIP filter ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp ixgbe: fix header len when unsplit packet overflows to data buffer ipv6: Never schedule DAD timer on dead address ipv6: Use POSTDAD state ipv6: Use state_lock to protect ifa state ipv6: Replace inet6_ifaddr->dead with state cxgb4: notify upper drivers if the device is already up when they load cxgb4: keep interrupts available when the ports are brought down cxgb4: fix initial addition of MAC address cnic: Return SPQ credit to bnx2x after ring setup and shutdown. cnic: Convert cnic_local_flags to atomic ops. can: Fix SJA1000 command register writes on SMP systems bridge: fix build for CONFIG_SYSFS disabled ARCNET: Limit com20020 PCI ID matches for SOHARD cards ... Fix up various conflicts with pcmcia tree drivers/net/ {pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and wireless/orinoco/spectrum_cs.c} and feature removal (Documentation/feature-removal-schedule.txt). Also fix a non-content conflict due to pm_qos_requirement getting renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c
Diffstat (limited to 'drivers/net/eepro.c')
-rw-r--r--drivers/net/eepro.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c
index 27c7bdbfa003..8d97f168f018 100644
--- a/drivers/net/eepro.c
+++ b/drivers/net/eepro.c
@@ -645,7 +645,7 @@ static void __init printEEPROMInfo(struct net_device *dev)
645 if (GetBit(Word,ee_PortTPE)) printk(KERN_DEBUG "TPE "); 645 if (GetBit(Word,ee_PortTPE)) printk(KERN_DEBUG "TPE ");
646 if (GetBit(Word,ee_PortBNC)) printk(KERN_DEBUG "BNC "); 646 if (GetBit(Word,ee_PortBNC)) printk(KERN_DEBUG "BNC ");
647 if (GetBit(Word,ee_PortAUI)) printk(KERN_DEBUG "AUI "); 647 if (GetBit(Word,ee_PortAUI)) printk(KERN_DEBUG "AUI ");
648 printk(KERN_DEBUG "port(s) \n"); 648 printk(KERN_DEBUG "port(s)\n");
649 649
650 Word = lp->word[6]; 650 Word = lp->word[6];
651 printk(KERN_DEBUG "Word6:\n"); 651 printk(KERN_DEBUG "Word6:\n");
@@ -765,7 +765,7 @@ static int __init eepro_probe1(struct net_device *dev, int autoprobe)
765 /* Grab the region so we can find another board if autoIRQ fails. */ 765 /* Grab the region so we can find another board if autoIRQ fails. */
766 if (!request_region(ioaddr, EEPRO_IO_EXTENT, DRV_NAME)) { 766 if (!request_region(ioaddr, EEPRO_IO_EXTENT, DRV_NAME)) {
767 if (!autoprobe) 767 if (!autoprobe)
768 printk(KERN_WARNING "EEPRO: io-port 0x%04x in use \n", 768 printk(KERN_WARNING "EEPRO: io-port 0x%04x in use\n",
769 ioaddr); 769 ioaddr);
770 return -EBUSY; 770 return -EBUSY;
771 } 771 }
@@ -1161,8 +1161,7 @@ static netdev_tx_t eepro_send_packet(struct sk_buff *skb,
1161 /* we won't wake queue here because we're out of space */ 1161 /* we won't wake queue here because we're out of space */
1162 dev->stats.tx_dropped++; 1162 dev->stats.tx_dropped++;
1163 else { 1163 else {
1164 dev->stats.tx_bytes+=skb->len; 1164 dev->stats.tx_bytes+=skb->len;
1165 dev->trans_start = jiffies;
1166 netif_wake_queue(dev); 1165 netif_wake_queue(dev);
1167 } 1166 }
1168 1167
@@ -1286,7 +1285,7 @@ set_multicast_list(struct net_device *dev)
1286 struct eepro_local *lp = netdev_priv(dev); 1285 struct eepro_local *lp = netdev_priv(dev);
1287 short ioaddr = dev->base_addr; 1286 short ioaddr = dev->base_addr;
1288 unsigned short mode; 1287 unsigned short mode;
1289 struct dev_mc_list *dmi; 1288 struct netdev_hw_addr *ha;
1290 int mc_count = netdev_mc_count(dev); 1289 int mc_count = netdev_mc_count(dev);
1291 1290
1292 if (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || mc_count > 63) 1291 if (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || mc_count > 63)
@@ -1331,8 +1330,8 @@ set_multicast_list(struct net_device *dev)
1331 outw(0, ioaddr + IO_PORT); 1330 outw(0, ioaddr + IO_PORT);
1332 outw(6 * (mc_count + 1), ioaddr + IO_PORT); 1331 outw(6 * (mc_count + 1), ioaddr + IO_PORT);
1333 1332
1334 netdev_for_each_mc_addr(dmi, dev) { 1333 netdev_for_each_mc_addr(ha, dev) {
1335 eaddrs = (unsigned short *) dmi->dmi_addr; 1334 eaddrs = (unsigned short *) ha->addr;
1336 outw(*eaddrs++, ioaddr + IO_PORT); 1335 outw(*eaddrs++, ioaddr + IO_PORT);
1337 outw(*eaddrs++, ioaddr + IO_PORT); 1336 outw(*eaddrs++, ioaddr + IO_PORT);
1338 outw(*eaddrs++, ioaddr + IO_PORT); 1337 outw(*eaddrs++, ioaddr + IO_PORT);