diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-07-12 20:26:34 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-07-12 20:26:34 +0000 |
commit | 3f1a4f74edf32ad4eca5bf38213c2d03bef90508 (patch) | |
tree | fc0e0729ea550c153c670ba4c74481e4adfd091c /sys/dev/usb/ubsa.c | |
parent | 894698ab3f603897bffd7993a7f1074e85172047 (diff) |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set
the 'dying' flag.
Diffstat (limited to 'sys/dev/usb/ubsa.c')
-rw-r--r-- | sys/dev/usb/ubsa.c | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/sys/dev/usb/ubsa.c b/sys/dev/usb/ubsa.c index fbce92dc083..3b6e8a40ff4 100644 --- a/sys/dev/usb/ubsa.c +++ b/sys/dev/usb/ubsa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsa.c,v 1.62 2014/07/12 18:48:52 tedu Exp $ */ +/* $OpenBSD: ubsa.c,v 1.63 2014/07/12 20:26:33 mpi Exp $ */ /* $NetBSD: ubsa.c,v 1.5 2002/11/25 00:51:33 fvdl Exp $ */ /*- * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>. @@ -210,21 +210,16 @@ const struct usb_devno ubsa_devs[] = { { USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC8700 }, }; -int ubsa_match(struct device *, void *, void *); -void ubsa_attach(struct device *, struct device *, void *); -int ubsa_detach(struct device *, int); -int ubsa_activate(struct device *, int); - -struct cfdriver ubsa_cd = { - NULL, "ubsa", DV_DULL -}; - -const struct cfattach ubsa_ca = { - sizeof(struct ubsa_softc), - ubsa_match, - ubsa_attach, - ubsa_detach, - ubsa_activate, +int ubsa_match(struct device *, void *, void *); +void ubsa_attach(struct device *, struct device *, void *); +int ubsa_detach(struct device *, int); + +struct cfdriver ubsa_cd = { + NULL, "ubsa", DV_DULL +}; + +const struct cfattach ubsa_ca = { + sizeof(struct ubsa_softc), ubsa_match, ubsa_attach, ubsa_detach }; int @@ -389,19 +384,6 @@ ubsa_detach(struct device *self, int flags) } int -ubsa_activate(struct device *self, int act) -{ - struct ubsa_softc *sc = (struct ubsa_softc *)self; - - switch (act) { - case DVACT_DEACTIVATE: - usbd_deactivate(sc->sc_udev); - break; - } - return (0); -} - -int ubsa_request(struct ubsa_softc *sc, u_int8_t request, u_int16_t value) { usb_device_request_t req; |