Messages in this thread Patch in this message | | | From | Iker Pedrosa <> | Subject | [PATCH v2 24/24] Staging: winbond: wbusb: changed sleep function from msleep to usleep | Date | Mon, 16 Sep 2013 15:43:44 +0200 |
| |
According to the documentation it is not recommended to use msleep for 1ms - 20ms because it may sleep longer than 20ms. So, it is recommended to use usleep instead.
Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com> --- drivers/staging/winbond/wbusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c index a2868f2..f23bc1d 100644 --- a/drivers/staging/winbond/wbusb.c +++ b/drivers/staging/winbond/wbusb.c @@ -717,7 +717,7 @@ static int wb35_hw_init(struct ieee80211_hw *hw) /* Waiting for HAL setting OK */ while (!hal_idle(pHwData)) - msleep(10); + usleep(10000); MTO_Init(priv); -- 1.8.1.2
| |