]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
e1000e: use msleep instead of mdelay
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 23 Feb 2012 03:31:29 +0000 (03:31 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Mar 2012 07:14:19 +0000 (23:14 -0800)
The e1000_link_stall_workaround_lv() function is always called in non-
atomic context so it should use msleep instead of mdelay.  Also, remove
unnecessary #include <linux/delay.h>.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/phy.c

index 6e768b11380e673179d421ae9ba7a5c31d34db48..35b45578c6049a7a190b03cc8ca5666b98a25000 100644 (file)
@@ -26,8 +26,6 @@
 
 *******************************************************************************/
 
-#include <linux/delay.h>
-
 #include "e1000.h"
 
 static s32 e1000_get_phy_cfg_done(struct e1000_hw *hw);
@@ -3153,7 +3151,7 @@ s32 e1000_link_stall_workaround_hv(struct e1000_hw *hw)
                     BM_CS_STATUS_SPEED_1000))
                return 0;
 
-       mdelay(200);
+       msleep(200);
 
        /* flush the packets in the fifo buffer */
        ret_val = e1e_wphy(hw, HV_MUX_DATA_CTRL, HV_MUX_DATA_CTRL_GEN_TO_MAC |