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

Loading…
Cancel
Save