diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-09 18:26:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-09 18:26:43 -0400 |
commit | 71ba22fa739029bb158144813b9e82c00326497c (patch) | |
tree | cca33deab3b79b38e15e6b3f7d7f9dfbf7ab32a2 /drivers/net/8139cp.c | |
parent | 27a278aa4309df244a2619f47031acce00ca1b7c (diff) | |
parent | f2ec8030085a27c4ba8e95a10a96f248efb34177 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (75 commits)
Ethernet driver for EISA only SNI RM200/RM400 machines
Extract chip specific code out of lasi_82596.c
ehea: Whitespace cleanup
pasemi_mac: Fix TX interrupt threshold
spidernet: Replace literal with const
r8169: perform RX config change after mac filtering
r8169: mac address change support
r8169: display some extra debug information during startup
r8169: add endianess annotations to [RT]xDesc
r8169: align the IP header when there is no DMA constraint
r8169: add bit description for the TxPoll register
r8169: cleanup
r8169: remove the media option
r8169: small 8101 comment
r8169: confusion between hardware and IP header alignment
r8169: merge with version 8.001.00 of Realtek's r8168 driver
r8169: merge with version 6.001.00 of Realtek's r8169 driver
r8169: prettify mac_version
r8169: populate the hw_start handler for the 8110
r8169: populate the hw_start handler for the 8168
...
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index a804965e6542..58bbc3e6d0de 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -107,11 +107,6 @@ MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered mu | |||
107 | 107 | ||
108 | #define PFX DRV_NAME ": " | 108 | #define PFX DRV_NAME ": " |
109 | 109 | ||
110 | #ifndef TRUE | ||
111 | #define FALSE 0 | ||
112 | #define TRUE (!FALSE) | ||
113 | #endif | ||
114 | |||
115 | #define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ | 110 | #define CP_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ |
116 | NETIF_MSG_PROBE | \ | 111 | NETIF_MSG_PROBE | \ |
117 | NETIF_MSG_LINK) | 112 | NETIF_MSG_LINK) |
@@ -661,7 +656,7 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance) | |||
661 | if (status & (TxOK | TxErr | TxEmpty | SWInt)) | 656 | if (status & (TxOK | TxErr | TxEmpty | SWInt)) |
662 | cp_tx(cp); | 657 | cp_tx(cp); |
663 | if (status & LinkChg) | 658 | if (status & LinkChg) |
664 | mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); | 659 | mii_check_media(&cp->mii_if, netif_msg_link(cp), false); |
665 | 660 | ||
666 | spin_unlock(&cp->lock); | 661 | spin_unlock(&cp->lock); |
667 | 662 | ||
@@ -1188,7 +1183,7 @@ static int cp_open (struct net_device *dev) | |||
1188 | goto err_out_hw; | 1183 | goto err_out_hw; |
1189 | 1184 | ||
1190 | netif_carrier_off(dev); | 1185 | netif_carrier_off(dev); |
1191 | mii_check_media(&cp->mii_if, netif_msg_link(cp), TRUE); | 1186 | mii_check_media(&cp->mii_if, netif_msg_link(cp), true); |
1192 | netif_start_queue(dev); | 1187 | netif_start_queue(dev); |
1193 | 1188 | ||
1194 | return 0; | 1189 | return 0; |
@@ -2050,7 +2045,7 @@ static int cp_resume (struct pci_dev *pdev) | |||
2050 | 2045 | ||
2051 | spin_lock_irqsave (&cp->lock, flags); | 2046 | spin_lock_irqsave (&cp->lock, flags); |
2052 | 2047 | ||
2053 | mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE); | 2048 | mii_check_media(&cp->mii_if, netif_msg_link(cp), false); |
2054 | 2049 | ||
2055 | spin_unlock_irqrestore (&cp->lock, flags); | 2050 | spin_unlock_irqrestore (&cp->lock, flags); |
2056 | 2051 | ||