aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-02-05 01:31:41 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-05 01:31:41 -0500
commitb405e8df26dfe4c56ab3f88f5cc1dfab0d220289 (patch)
treeb6a1edf4f519536ad22c69a7d342038315859264 /drivers
parent570930fe1ee497de6aafd895dbe80116cb10525f (diff)
e1000e: Fix namespace conflicts wrt. e1000_has_link
Reported by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000e/e1000.h2
-rw-r--r--drivers/net/e1000e/ethtool.c2
-rw-r--r--drivers/net/e1000e/netdev.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h
index 318bdb28a7cd..c2ec095d2163 100644
--- a/drivers/net/e1000e/e1000.h
+++ b/drivers/net/e1000e/e1000.h
@@ -459,7 +459,7 @@ extern int e1000e_setup_tx_resources(struct e1000_adapter *adapter);
459extern void e1000e_free_rx_resources(struct e1000_adapter *adapter); 459extern void e1000e_free_rx_resources(struct e1000_adapter *adapter);
460extern void e1000e_free_tx_resources(struct e1000_adapter *adapter); 460extern void e1000e_free_tx_resources(struct e1000_adapter *adapter);
461extern void e1000e_update_stats(struct e1000_adapter *adapter); 461extern void e1000e_update_stats(struct e1000_adapter *adapter);
462extern bool e1000_has_link(struct e1000_adapter *adapter); 462extern bool e1000e_has_link(struct e1000_adapter *adapter);
463extern void e1000e_set_interrupt_capability(struct e1000_adapter *adapter); 463extern void e1000e_set_interrupt_capability(struct e1000_adapter *adapter);
464extern void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter); 464extern void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter);
465 465
diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c
index 0aa50c229c79..b33e3cbe9ab0 100644
--- a/drivers/net/e1000e/ethtool.c
+++ b/drivers/net/e1000e/ethtool.c
@@ -202,7 +202,7 @@ static u32 e1000_get_link(struct net_device *netdev)
202 if (!netif_carrier_ok(netdev)) 202 if (!netif_carrier_ok(netdev))
203 mac->get_link_status = 1; 203 mac->get_link_status = 1;
204 204
205 return e1000_has_link(adapter); 205 return e1000e_has_link(adapter);
206} 206}
207 207
208static int e1000_set_spd_dplx(struct e1000_adapter *adapter, u16 spddplx) 208static int e1000_set_spd_dplx(struct e1000_adapter *adapter, u16 spddplx)
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 14a80f8f6118..ffa37c682a00 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -3472,7 +3472,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
3472 ((ctrl & E1000_CTRL_TFCE) ? "TX" : "None" ))); 3472 ((ctrl & E1000_CTRL_TFCE) ? "TX" : "None" )));
3473} 3473}
3474 3474
3475bool e1000_has_link(struct e1000_adapter *adapter) 3475bool e1000e_has_link(struct e1000_adapter *adapter)
3476{ 3476{
3477 struct e1000_hw *hw = &adapter->hw; 3477 struct e1000_hw *hw = &adapter->hw;
3478 bool link_active = 0; 3478 bool link_active = 0;
@@ -3553,7 +3553,7 @@ static void e1000_watchdog_task(struct work_struct *work)
3553 u32 link, tctl; 3553 u32 link, tctl;
3554 int tx_pending = 0; 3554 int tx_pending = 0;
3555 3555
3556 link = e1000_has_link(adapter); 3556 link = e1000e_has_link(adapter);
3557 if ((netif_carrier_ok(netdev)) && link) { 3557 if ((netif_carrier_ok(netdev)) && link) {
3558 e1000e_enable_receives(adapter); 3558 e1000e_enable_receives(adapter);
3559 goto link_up; 3559 goto link_up;