aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index e521d2cebad6..b13fbc4ebd87 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -1064,9 +1064,12 @@ static int smi_wait_ready(struct mv643xx_eth_shared_private *msp)
1064 return 0; 1064 return 0;
1065 } 1065 }
1066 1066
1067 if (!wait_event_timeout(msp->smi_busy_wait, smi_is_done(msp), 1067 if (!smi_is_done(msp)) {
1068 msecs_to_jiffies(100))) 1068 wait_event_timeout(msp->smi_busy_wait, smi_is_done(msp),
1069 return -ETIMEDOUT; 1069 msecs_to_jiffies(100));
1070 if (!smi_is_done(msp))
1071 return -ETIMEDOUT;
1072 }
1070 1073
1071 return 0; 1074 return 0;
1072} 1075}