[PATCH] drivers/block: fix-up schedule_timeout() usage
[pandora-kernel.git] / drivers / block / paride / pf.c
index 060b1f2..711d2f3 100644 (file)
@@ -507,8 +507,7 @@ static void pf_eject(struct pf_unit *pf)
 
 static void pf_sleep(int cs)
 {
-       current->state = TASK_INTERRUPTIBLE;
-       schedule_timeout(cs);
+       schedule_timeout_interruptible(cs);
 }
 
 /* the ATAPI standard actually specifies the contents of all 7 registers