]> git.hungrycats.org Git - linux/commitdiff
[PATCH] v4l: msp3400 cleanup
authorGerd Knorr <kraxel@bytesex.org>
Wed, 20 Oct 2004 01:18:54 +0000 (18:18 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:18:54 +0000 (18:18 -0700)
This is a minor cleanup for the msp3400.c module: use the new msleep()
function for delays.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/msp3400.c

index b606096164b9ecce36e061b33c45e1da44c6fd1a..a6ff615bf6b4d2c1b275b533c32e43f9afaaa549 100644 (file)
@@ -191,8 +191,7 @@ msp3400c_read(struct i2c_client *client, int dev, int addr)
                err++;
                printk(KERN_WARNING "msp34xx: I/O error #%d (read 0x%02x/0x%02x)\n",
                       err, dev, addr);
-               set_current_state(TASK_INTERRUPTIBLE);
-               schedule_timeout(HZ/10);
+               msleep(10);
        }
        if (3 == err) {
                printk(KERN_WARNING "msp34xx: giving up, reseting chip. Sound will go off, sorry folks :-|\n");
@@ -220,8 +219,7 @@ msp3400c_write(struct i2c_client *client, int dev, int addr, int val)
                err++;
                printk(KERN_WARNING "msp34xx: I/O error #%d (write 0x%02x/0x%02x)\n",
                       err, dev, addr);
-               set_current_state(TASK_INTERRUPTIBLE);
-               schedule_timeout(HZ/10);
+               msleep(10);
        }
        if (3 == err) {
                printk(KERN_WARNING "msp34xx: giving up, reseting chip. Sound will go off, sorry folks :-|\n");