e1000e: Fix namespace conflicts wrt. e1000_has_link
authorDavid S. Miller <davem@davemloft.net>
Fri, 5 Feb 2010 06:31:41 +0000 (22:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Feb 2010 06:31:41 +0000 (22:31 -0800)
Reported by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/ethtool.c
drivers/net/e1000e/netdev.c

index 318bdb28a7cd92504700e2aff0e682c9c643b8bb..c2ec095d2163980953e0bd4ad464fdb8736a9450 100644 (file)
@@ -459,7 +459,7 @@ extern int e1000e_setup_tx_resources(struct e1000_adapter *adapter);
 extern void e1000e_free_rx_resources(struct e1000_adapter *adapter);
 extern void e1000e_free_tx_resources(struct e1000_adapter *adapter);
 extern void e1000e_update_stats(struct e1000_adapter *adapter);
-extern bool e1000_has_link(struct e1000_adapter *adapter);
+extern bool e1000e_has_link(struct e1000_adapter *adapter);
 extern void e1000e_set_interrupt_capability(struct e1000_adapter *adapter);
 extern void e1000e_reset_interrupt_capability(struct e1000_adapter *adapter);
 
index 0aa50c229c79cee81d134d1ab1129360db1ec99c..b33e3cbe9ab03dd22fb8d97c104b9080e94b2b68 100644 (file)
@@ -202,7 +202,7 @@ static u32 e1000_get_link(struct net_device *netdev)
        if (!netif_carrier_ok(netdev))
                mac->get_link_status = 1;
 
-       return e1000_has_link(adapter);
+       return e1000e_has_link(adapter);
 }
 
 static int e1000_set_spd_dplx(struct e1000_adapter *adapter, u16 spddplx)
index 14a80f8f61183717d7005a48caad89902d8ddd04..ffa37c682a00f1036d59920e10b546ec254169d1 100644 (file)
@@ -3472,7 +3472,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
               ((ctrl & E1000_CTRL_TFCE) ? "TX" : "None" )));
 }
 
-bool e1000_has_link(struct e1000_adapter *adapter)
+bool e1000e_has_link(struct e1000_adapter *adapter)
 {
        struct e1000_hw *hw = &adapter->hw;
        bool link_active = 0;
@@ -3553,7 +3553,7 @@ static void e1000_watchdog_task(struct work_struct *work)
        u32 link, tctl;
        int tx_pending = 0;
 
-       link = e1000_has_link(adapter);
+       link = e1000e_has_link(adapter);
        if ((netif_carrier_ok(netdev)) && link) {
                e1000e_enable_receives(adapter);
                goto link_up;