summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/mcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cdrom/mcd.c')
-rw-r--r--drivers/cdrom/mcd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cdrom/mcd.c b/drivers/cdrom/mcd.c
index 46866f4c2..b69f9e834 100644
--- a/drivers/cdrom/mcd.c
+++ b/drivers/cdrom/mcd.c
@@ -1100,8 +1100,7 @@ static int mcd_open(struct cdrom_device_info * cdi, int purpose)
return -EIO; /* drive doesn't respond */
if ((st & MST_READY) == 0) { /* no disk? wait a sec... */
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + HZ;
- schedule();
+ schedule_timeout(HZ);
}
} while (((st & MST_READY) == 0) && count++ < MCD_RETRY_ATTEMPTS);