X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhysdn%2Fboardergo.c;h=2f2731520d40365eacf5623317c665a1933d86be;hb=a9fdee76789476a10f923f9fb3c84993042da3ac;hp=e19a01a305a9f2a7d4800cc51247f63e314e0a79;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/isdn/hysdn/boardergo.c b/drivers/isdn/hysdn/boardergo.c index e19a01a30..2f2731520 100644 --- a/drivers/isdn/hysdn/boardergo.c +++ b/drivers/isdn/hysdn/boardergo.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include "hysdn_defs.h" @@ -247,7 +246,8 @@ ergo_writebootimg(struct HYSDN_CARD *card, uchar * buf, ulong offs) /* the interrupts are still masked */ sti(); - msleep_interruptible(20); /* Timeout 20ms */ + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout((20 * HZ) / 1000); /* Timeout 20ms */ if (((tDpramBootSpooler *) card->dpram)->Len != DPRAM_SPOOLER_DATA_SIZE) { if (card->debug_flags & LOG_POF_CARD) @@ -386,7 +386,8 @@ ergo_waitpofready(struct HYSDN_CARD *card) return (0); /* success */ } /* data has arrived */ sti(); - msleep_interruptible(50); /* Timeout 50ms */ + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout((50 * HZ) / 1000); /* Timeout 50ms */ } /* wait until timeout */ if (card->debug_flags & LOG_POF_CARD)