Browse Source

[3c5x9] 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
c640b954cd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/3c5x9.c

+ 1
- 1
src/drivers/net/3c5x9.c View File

@@ -108,7 +108,7 @@ static void t509_enable ( struct nic *nic ) {
108 108
 	else if (connector == utp) {
109 109
 		GO_WINDOW(nic->ioaddr,4);
110 110
 		outw(ENABLE_UTP, nic->ioaddr + EP_W4_MEDIA_TYPE);
111
-		sleep(2);	/* Give time for media to negotiate */
111
+		mdelay(2000);	/* Give time for media to negotiate */
112 112
 		GO_WINDOW(nic->ioaddr,1);
113 113
 	}
114 114
 

Loading…
Cancel
Save