Browse Source

[etherfabric] Avoid use of sleep() in driver code

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
59bae324c0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c View File

@@ -4006,7 +4006,7 @@ efab_init_mac ( struct efab_nic *efab )
4006 4006
 		 * because we want to use it, or because we're about
4007 4007
 		 * to reset the mac anyway
4008 4008
 		 */
4009
-		sleep ( 2 );
4009
+		mdelay ( 2000 );
4010 4010
 
4011 4011
 		if ( ! efab->link_up ) {
4012 4012
 			EFAB_ERR ( "!\n" );

Loading…
Cancel
Save