aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-06-24 17:16:05 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-06-24 22:58:17 -0400
commit2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4 (patch)
tree2f72d9bb0a0d26ae8e04ce6594fddb2d2ae418b0 /drivers/net/dm9000.c
parentf8dd0ecbb74d4b220b105d77c0633945ebb5453e (diff)
DM9000: Add missing msleep() in EEPROM wait code.
The msleep() call in the code that checks for the EEPROM controller's busy status was missing. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r--drivers/net/dm9000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 5ad2ec537684..92233400e6f9 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -343,6 +343,8 @@ static int dm9000_wait_eeprom(board_info_t *db)
343 if ((status & EPCR_ERRE) == 0) 343 if ((status & EPCR_ERRE) == 0)
344 break; 344 break;
345 345
346 msleep(1);
347
346 if (timeout-- < 0) { 348 if (timeout-- < 0) {
347 dev_dbg(db->dev, "timeout waiting EEPROM\n"); 349 dev_dbg(db->dev, "timeout waiting EEPROM\n");
348 break; 350 break;