X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fact2000%2Fact2000_isa.c;h=b363d09764653b98dc197429f53303c6ebd117ca;hb=9e1bf581d67d87a1d7fc0ea500729e3a03643a26;hp=df7923c5b843a33d4c4af95b9bf56335264837a2;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/isdn/act2000/act2000_isa.c b/drivers/isdn/act2000/act2000_isa.c index df7923c5b..b363d0976 100644 --- a/drivers/isdn/act2000/act2000_isa.c +++ b/drivers/isdn/act2000/act2000_isa.c @@ -18,6 +18,13 @@ static act2000_card *irq2card_map[16]; +static void +act2000_isa_delay(long t) +{ + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout(t); +} + /* * Reset Controller, then try to read the Card's signature. + Return: @@ -412,7 +419,7 @@ act2000_isa_download(act2000_card * card, act2000_ddef __user * cb) if (!act2000_isa_reset(card->port)) return -ENXIO; - msleep_interruptible(500); + act2000_isa_delay(HZ / 2); if(copy_from_user(&cblock, cb, sizeof(cblock))) return -EFAULT; length = cblock.length; @@ -445,6 +452,6 @@ act2000_isa_download(act2000_card * card, act2000_ddef __user * cb) p += l; } kfree(buf); - msleep_interruptible(500); + act2000_isa_delay(HZ / 2); return (act2000_isa_getid(card)); }