Commit 6f7e10f6 authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] radio/radio-maxiradio: replace schedule_timeout() with msleep()

Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7df21e71
......@@ -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: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment