Merge to Fedora Core 2 kernel-2.6.8-1.521
[linux-2.6.git] / drivers / sbus / char / envctrl.c
index 70ae314..cd6e2d3 100644 (file)
@@ -1181,8 +1181,7 @@ static void __exit envctrl_cleanup(void)
                        if (!found)
                                break;
 
-                       current->state = TASK_INTERRUPTIBLE;
-                       schedule_timeout(HZ);
+                       msleep(1000);
                }
                kenvctrld_task = NULL;
        }