summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-05-18 01:57:20 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-05-18 01:57:20 -0700
commitad72bf4f33fcd6fa52a125d429ec615ae547abed (patch)
tree91c7241305c1e846e9a494abb134df0727cad8b8 /drivers
parenta715632eb997394bdaa33540592443d3b680a242 (diff)
USB: clean up usages of wait_ms() now that we have msleep()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-hcd.c2
-rw-r--r--drivers/usb/host/ehci-hub.c2
-rw-r--r--drivers/usb/input/aiptek.c2
-rw-r--r--drivers/usb/misc/usbtest.c2
-rw-r--r--drivers/usb/net/usbnet.c2
-rw-r--r--drivers/usb/serial/io_ti.c4
-rw-r--r--drivers/usb/storage/datafab.c2
-rw-r--r--drivers/usb/storage/isd200.c4
-rw-r--r--drivers/usb/storage/jumpshot.c2
-rw-r--r--drivers/usb/storage/shuttle_usbat.c14
10 files changed, 18 insertions, 18 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index d90251171701..172223e87e9a 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -297,7 +297,7 @@ static int bios_handoff (struct ehci_hcd *ehci, int where, u32 cap)
/* and wait a while for it to happen */
do {
- wait_ms (10);
+ msleep(10);
msec -= 10;
pci_read_config_dword (to_pci_dev(ehci->hcd.self.controller), where, &cap);
} while ((cap & (1 << 16)) && msec);
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index c424bcab7c90..f7210234507f 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -118,7 +118,7 @@ static int ehci_hub_resume (struct usb_hcd *hcd)
writel (temp, &ehci->regs->port_status [i]);
}
i = HCS_N_PORTS (ehci->hcs_params);
- wait_ms (20);
+ msleep (20);
while (i--) {
temp = readl (&ehci->regs->port_status [i]);
if ((temp & PORT_SUSPEND) == 0)
diff --git a/drivers/usb/input/aiptek.c b/drivers/usb/input/aiptek.c
index 8fd40edb398c..81caa0dfec17 100644
--- a/drivers/usb/input/aiptek.c
+++ b/drivers/usb/input/aiptek.c
@@ -922,7 +922,7 @@ aiptek_query(struct aiptek *aiptek, unsigned char command, unsigned char data)
kfree(buf);
return -EIO;
}
- wait_ms(aiptek->curSetting.programmableDelay);
+ msleep(aiptek->curSetting.programmableDelay);
if ((ret =
aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) {
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index 6ba30d9725fd..2fb1fae8c6a6 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -1073,7 +1073,7 @@ static int unlink1 (struct usbtest_dev *dev, int pipe, int size, int async)
/* unlinking that should always work. variable delay tests more
* hcd states and code paths, even with little other system load.
*/
- wait_ms (jiffies % (2 * INTERRUPT_RATE));
+ msleep (jiffies % (2 * INTERRUPT_RATE));
retry:
retval = usb_unlink_urb (urb);
if (retval == -EBUSY || retval == -EIDRM) {
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
index 61a1c31296df..e2e328f331dd 100644
--- a/drivers/usb/net/usbnet.c
+++ b/drivers/usb/net/usbnet.c
@@ -720,7 +720,7 @@ static int ax8817x_bind(struct usbnet *dev, struct usb_interface *intf)
(gpio_bits >> (i * 8)) & 0xff, 0, 0,
buf)) < 0)
return ret;
- wait_ms(5);
+ msleep(5);
}
if ((ret = ax8817x_write_cmd(dev, AX_CMD_WRITE_RX_CTL, 0x80, 0, 0, buf)) < 0) {
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 67b2d3c16d4a..853cf1700ecc 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -552,7 +552,7 @@ restart_tx_loop:
break;
/* Block the thread for 10ms */
- wait_ms (10);
+ msleep(10);
if (last_count == port->tx.count) {
/* No activity.. count down. */
@@ -581,7 +581,7 @@ restart_tx_loop:
/* This function takes 4 ms; */
if (!TIIsTxActive (port)) {
/* Delay a few char times */
- wait_ms (50);
+ msleep(50);
dbg ("%s - Empty", __FUNCTION__);
return;
}
diff --git a/drivers/usb/storage/datafab.c b/drivers/usb/storage/datafab.c
index 61fa282bdce6..58baacc9af50 100644
--- a/drivers/usb/storage/datafab.c
+++ b/drivers/usb/storage/datafab.c
@@ -321,7 +321,7 @@ static int datafab_determine_lun(struct us_data *us,
goto leave;
}
- wait_ms(20);
+ msleep(20);
}
rc = USB_STOR_TRANSPORT_ERROR;
diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c
index 2b7da4088ebb..43cc9c5e07d4 100644
--- a/drivers/usb/storage/isd200.c
+++ b/drivers/usb/storage/isd200.c
@@ -806,7 +806,7 @@ static int isd200_srst( struct us_data *us )
retStatus = ISD200_ERROR;
} else {
/* delay 10ms to give the drive a chance to see it */
- wait_ms(10);
+ msleep(10);
transferStatus = isd200_action( us, ACTION_REENABLE, NULL, 0 );
if (transferStatus != ISD200_TRANSPORT_GOOD) {
@@ -814,7 +814,7 @@ static int isd200_srst( struct us_data *us )
retStatus = ISD200_ERROR;
} else {
/* delay 50ms to give the drive a chance to recover after SRST */
- wait_ms(50);
+ msleep(50);
}
}
diff --git a/drivers/usb/storage/jumpshot.c b/drivers/usb/storage/jumpshot.c
index f4ca40c55a00..39b24e59f4ea 100644
--- a/drivers/usb/storage/jumpshot.c
+++ b/drivers/usb/storage/jumpshot.c
@@ -253,7 +253,7 @@ static int jumpshot_write_data(struct us_data *us,
if (result != USB_STOR_TRANSPORT_GOOD) {
// I have not experimented to find the smallest value.
//
- wait_ms(50);
+ msleep(50);
}
} while ((result != USB_STOR_TRANSPORT_GOOD) && (waitcount < 10));
diff --git a/drivers/usb/storage/shuttle_usbat.c b/drivers/usb/storage/shuttle_usbat.c
index aced23cfda20..b0af06e4fecc 100644
--- a/drivers/usb/storage/shuttle_usbat.c
+++ b/drivers/usb/storage/shuttle_usbat.c
@@ -202,13 +202,13 @@ static int usbat_wait_not_busy(struct us_data *us, int minutes)
}
if (i<500)
- wait_ms(10); // 5 seconds
+ msleep(10); // 5 seconds
else if (i<700)
- wait_ms(50); // 10 seconds
+ msleep(50); // 10 seconds
else if (i<1200)
- wait_ms(100); // 50 seconds
+ msleep(100); // 50 seconds
else
- wait_ms(1000); // X minutes
+ msleep(1000); // X minutes
}
US_DEBUGP("Waited not busy for %d minutes, timing out.\n",
@@ -691,7 +691,7 @@ int init_8200e(struct us_data *us)
US_DEBUGP("INIT 1\n");
- wait_ms(2000);
+ msleep(2000);
if (usbat_read_user_io(us, status) !=
USB_STOR_XFER_GOOD)
@@ -725,7 +725,7 @@ int init_8200e(struct us_data *us)
US_DEBUGP("INIT 5\n");
- wait_ms(250);
+ msleep(250);
// Write 0x80 to ISA port 0x3F
@@ -776,7 +776,7 @@ int init_8200e(struct us_data *us)
US_DEBUGP("INIT 12\n");
- wait_ms(1400);
+ msleep(1400);
if (usbat_read_user_io(us, status) !=
USB_STOR_XFER_GOOD)