]> git.hungrycats.org Git - linux/commitdiff
[PATCH] radio/radio-maxiradio: replace schedule_timeout() with msleep()
authorMaximilian Attems <janitor@sternwelten.at>
Fri, 3 Sep 2004 03:37:42 +0000 (20:37 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:37:42 +0000 (20:37 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/radio/radio-maxiradio.c

index c2fa20d7704c3e853e45c06ffd867f16c5880c22..c3c62095fac8565b560547136cfea5a73d2e551c 100644 (file)
@@ -104,13 +104,6 @@ static struct radio_device
 } radio_unit = {0, 0, 0, 0, };
 
 
-static void sleep_125ms(void)
-{
-       current->state = TASK_INTERRUPTIBLE;
-       schedule_timeout(HZ >> 3);
-}
-
-
 static void outbit(unsigned long bit, __u16 io)
 {
        if(bit != 0)
@@ -228,7 +221,7 @@ inline static int radio_function(struct inode *inode, struct file *file,
                                return -EINVAL;
                        card->freq = *freq;
                        set_freq(card->io, FREQ2BITS(card->freq));
-                       sleep_125ms();
+                       msleep(125);
                        return 0;
                }
                case VIDIOCGAUDIO: {