[PATCH 1/6] Staging: winbond: wb35reg: changed sleep function from msleep to usleep

From: Iker Pedrosa
Date: Mon Aug 05 2013 - 05:59:50 EST


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(&reg->EP0VM_spin_lock);
--
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/