vserver 2.0 rc7
[linux-2.6.git] / drivers / net / cs89x0.c
index 8171b10..5c5f540 100644 (file)
 #include <linux/string.h>
 #include <linux/init.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <asm/system.h>
 #include <asm/io.h>
@@ -909,8 +910,7 @@ void  __init reset_chip(struct net_device *dev)
        writereg(dev, PP_SelfCTL, readreg(dev, PP_SelfCTL) | POWER_ON_RESET);
 
        /* wait 30 ms */
-       current->state = TASK_INTERRUPTIBLE;
-       schedule_timeout(30*HZ/1000);
+       msleep(30);
 
 #ifndef CONFIG_ARCH_IXDP2X01
        if (lp->chip_type != CS8900) {