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@xxxxxxxxx> --- drivers/staging/winbond/wb35tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/winbond/wb35tx.c b/drivers/staging/winbond/wb35tx.c index 30a77cc..8c25cbd 100644 --- a/drivers/staging/winbond/wb35tx.c +++ b/drivers/staging/winbond/wb35tx.c @@ -166,9 +166,9 @@ void Wb35Tx_destroy(struct hw_data *pHwData) /* Wait for VM stop */ do { - msleep(10); /* Delay for waiting function enter 940623.1.a */ + usleep(10000); /* Delay for waiting function enter 940623.1.a */ } while ((pWb35Tx->EP2vm_state != VM_STOP) && (pWb35Tx->EP4vm_state != VM_STOP)); - msleep(10); /* Delay for waiting function enter 940623.1.b */ + usleep(10000); /* Delay for waiting function enter 940623.1.b */ usb_free_urb(pWb35Tx->Tx4Urb); usb_free_urb(pWb35Tx->Tx2Urb); -- 1.8.1.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel