vserver 2.0 rc7
[linux-2.6.git] / drivers / net / irda / tekram-sir.c
index 6270880..0dd6bc7 100644 (file)
@@ -179,7 +179,7 @@ static int tekram_change_speed(struct sir_dev *dev, unsigned speed)
                break;
 
        default:
-               ERROR("%s - undefined state %d\n", __FUNCTION__, state);
+               IRDA_ERROR("%s - undefined state %d\n", __FUNCTION__, state);
                ret = -EINVAL;
                break;
        }
@@ -210,8 +210,7 @@ static int tekram_reset(struct sir_dev *dev)
        sirdev_set_dtr_rts(dev, FALSE, TRUE); 
 
        /* Should sleep 1 ms */
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(msecs_to_jiffies(1));
+       msleep(1);
 
        /* Set DTR, Set RTS */
        sirdev_set_dtr_rts(dev, TRUE, TRUE);