Changed sleep function from msleep to usleep according to the documentation. Signed-off-by: Iker Pedrosa <ikerpedrosam@xxxxxxxxx> --- drivers/staging/winbond/wb35reg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/winbond/wb35reg.c b/drivers/staging/winbond/wb35reg.c index 9be1b3b..34a2618 100644 --- a/drivers/staging/winbond/wb35reg.c +++ b/drivers/staging/winbond/wb35reg.c @@ -134,7 +134,7 @@ unsigned char Wb35Reg_WriteSync(struct hw_data *pHwData, u16 RegisterNo, u32 Reg /* Wait until EP0VM stop */ while (reg->EP0vm_state != VM_STOP) - msleep(10); + usleep(10000); /* Sync IoCallDriver */ reg->EP0vm_state = VM_RUNNING; @@ -301,7 +301,7 @@ unsigned char Wb35Reg_ReadSync(struct hw_data *pHwData, u16 RegisterNo, u32 *pRe /* Wait until EP0VM stop */ while (reg->EP0vm_state != VM_STOP) - msleep(10); + usleep(10000); reg->EP0vm_state = VM_RUNNING; ret = usb_control_msg(pHwData->udev, @@ -501,9 +501,9 @@ void Wb35Reg_destroy(struct hw_data *pHwData) /* Wait for Reg operation completed */ do { - msleep(10); /* Delay for waiting function enter */ + usleep(10000); /* Delay for waiting function enter */ } while (reg->EP0vm_state != VM_STOP); - msleep(10); /* Delay for waiting function enter */ + usleep(10000); /* Delay for waiting function enter */ /* Release all the data in RegQueue */ spin_lock_irq(®->EP0VM_spin_lock); -- 1.8.1.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel