diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-04-07 12:19:50 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-04-07 12:19:50 +0000 |
| commit | 906e5d2c1b1a503aef1b22a0bad613b2ac9883b5 (patch) | |
| tree | a37b104ae81e21b6712d7c1222df6b8e8ccf1637 /sys/dev/usb/if_cue.c | |
| parent | f046c9272ade91728acf617f597f5ac426c20d0c (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/if_cue.c')
| -rw-r--r-- | sys/dev/usb/if_cue.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index cacf21edd4380..ab150df0785b8 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -170,8 +170,7 @@ cue_csr_read_1(struct cue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 1); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, &val); CUE_UNLOCK(sc); @@ -199,8 +198,7 @@ cue_csr_read_2(struct cue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 2); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, &val); CUE_UNLOCK(sc); @@ -227,8 +225,7 @@ cue_csr_write_1(struct cue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, NULL); CUE_UNLOCK(sc); @@ -256,8 +253,7 @@ cue_csr_write_2(struct cue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, NULL); CUE_UNLOCK(sc); @@ -288,8 +284,7 @@ cue_mem(struct cue_softc *sc, int cmd, int addr, void *buf, int len) USETW(req.wIndex, addr); USETW(req.wLength, len); - err = usbd_do_request_flags(sc->cue_udev, - &req, &buf, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, buf); CUE_UNLOCK(sc); @@ -316,8 +311,7 @@ cue_getmac(struct cue_softc *sc, void *buf) USETW(req.wIndex, 0); USETW(req.wLength, ETHER_ADDR_LEN); - err = usbd_do_request_flags(sc->cue_udev, - &req, buf, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, buf); CUE_UNLOCK(sc); @@ -406,9 +400,7 @@ cue_reset(struct cue_softc *sc) USETW(req.wValue, 0); USETW(req.wIndex, 0); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, NULL, USBD_NO_TSLEEP, NULL); - + err = usbd_do_request(sc->cue_udev, &req, NULL); if (err) printf("cue%d: reset failed\n", sc->cue_unit); |
