Commit 3cc5bf77 authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] radio/radio-sf16fmi: 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 41024743
......@@ -89,8 +89,7 @@ static inline int fmi_setfreq(struct fmi_device *dev)
outbits(16, RSF16_ENCODE(freq), myport);
outbits(8, 0xC0, myport);
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout(HZ/7);
msleep(143); /* was schedule_timeout(HZ/7) */
up(&lock);
if (dev->curvol) fmi_unmute(myport);
return 0;
......@@ -107,8 +106,7 @@ static inline int fmi_getsigstr(struct fmi_device *dev)
val = dev->curvol ? 0x08 : 0x00; /* unmute/mute */
outb(val, myport);
outb(val | 0x10, myport);
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(HZ/7);
msleep(143); /* was schedule_timeout(HZ/7) */
res = (int)inb(myport+1);
outb(val, myport);
......
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