X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Finput%2Fgameport%2Fns558.c;h=35287895379c4caca29fcb98463a412621ca2289;hb=d3dbef379b86741a68910101b3bd77c773c2d7b7;hp=4b52ffe25d95eb2b5f37f6a18269f84179caae4b;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c index 4b52ffe25..352878953 100644 --- a/drivers/input/gameport/ns558.c +++ b/drivers/input/gameport/ns558.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -103,7 +104,7 @@ static void ns558_isa_probe(int io) i = 0; goto out; } - wait_ms(3); + msleep(3); /* * After some time (4ms) the axes shouldn't change anymore. */ @@ -129,7 +130,7 @@ static void ns558_isa_probe(int io) outb(0xff, io & (-1 << i)); for (j = b = 0; j < 1000; j++) if (inb(io & (-1 << i)) != inb((io & (-1 << i)) + (1 << i) - 1)) b++; - wait_ms(3); + msleep(3); if (b > 300) { /* We allow 30% difference */ release_region(io & (-1 << i), (1 << i));