summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uark.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-12 20:26:34 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-12 20:26:34 +0000
commit3f1a4f74edf32ad4eca5bf38213c2d03bef90508 (patch)
treefc0e0729ea550c153c670ba4c74481e4adfd091c /sys/dev/usb/uark.c
parent894698ab3f603897bffd7993a7f1074e85172047 (diff)
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set
the 'dying' flag.
Diffstat (limited to 'sys/dev/usb/uark.c')
-rw-r--r--sys/dev/usb/uark.c40
1 files changed, 11 insertions, 29 deletions
diff --git a/sys/dev/usb/uark.c b/sys/dev/usb/uark.c
index 2999298c1e7..70e9067901a 100644
--- a/sys/dev/usb/uark.c
+++ b/sys/dev/usb/uark.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uark.c,v 1.19 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uark.c,v 1.20 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -90,21 +90,16 @@ static const struct usb_devno uark_devs[] = {
{ USB_VENDOR_ARKMICRO, USB_PRODUCT_ARKMICRO_ARK3116 }
};
-int uark_match(struct device *, void *, void *);
-void uark_attach(struct device *, struct device *, void *);
-int uark_detach(struct device *, int);
-int uark_activate(struct device *, int);
-
-struct cfdriver uark_cd = {
- NULL, "uark", DV_DULL
-};
-
-const struct cfattach uark_ca = {
- sizeof(struct uark_softc),
- uark_match,
- uark_attach,
- uark_detach,
- uark_activate,
+int uark_match(struct device *, void *, void *);
+void uark_attach(struct device *, struct device *, void *);
+int uark_detach(struct device *, int);
+
+struct cfdriver uark_cd = {
+ NULL, "uark", DV_DULL
+};
+
+const struct cfattach uark_ca = {
+ sizeof(struct uark_softc), uark_match, uark_attach, uark_detach
};
int
@@ -203,19 +198,6 @@ uark_detach(struct device *self, int flags)
return (rv);
}
-int
-uark_activate(struct device *self, int act)
-{
- struct uark_softc *sc = (struct uark_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
void
uark_set(void *vsc, int portno, int reg, int onoff)
{