ChangeSet 1.1807.48.22, 2004/08/02 14:28:02-07:00, [EMAIL PROTECTED]

[PATCH] USB: ov511: replace schedule_timeout() with msleep()

Use msleep() instead of schedule_timeout() to
guarantee the task delays for the desired time.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
Signed-off-by: Mark McClelland <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/media/ov511.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/drivers/usb/media/ov511.c b/drivers/usb/media/ov511.c
--- a/drivers/usb/media/ov511.c 2004-08-23 13:20:14 -07:00
+++ b/drivers/usb/media/ov511.c 2004-08-23 13:20:14 -07:00
@@ -1169,7 +1169,7 @@
                return -EIO;
 
        /* Wait for it to initialize */
-       schedule_timeout(1 + 150 * HZ / 1000);
+       msleep(150);
 
        for (i = 0, success = 0; i < i2c_detect_tries && !success; i++) {
                if ((i2c_r(ov, OV7610_REG_ID_HIGH) == 0x7F) &&
@@ -1182,7 +1182,7 @@
                if (i2c_w(ov, 0x12, 0x80) < 0)
                        return -EIO;
                /* Wait for it to initialize */
-               schedule_timeout(1 + 150 * HZ / 1000);
+               msleep(150);
                /* Dummy read to sync I2C */
                if (i2c_r(ov, 0x00) < 0)
                        return -EIO;
@@ -4947,7 +4947,7 @@
                        return -1;
 
                /* Wait for it to initialize */
-               schedule_timeout(1 + 150 * HZ / 1000);
+               msleep(150);
 
                i = 0;
                success = 0;



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to