aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/smsc911x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index 9a795105cc7c..ad15aab2137d 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -1162,8 +1162,8 @@ static int smsc911x_open(struct net_device *dev)
1162 1162
1163 /* Make sure EEPROM has finished loading before setting GPIO_CFG */ 1163 /* Make sure EEPROM has finished loading before setting GPIO_CFG */
1164 timeout = 50; 1164 timeout = 50;
1165 while ((timeout--) && 1165 while ((smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) &&
1166 (smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_)) { 1166 --timeout) {
1167 udelay(10); 1167 udelay(10);
1168 } 1168 }
1169 1169