summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uipaq.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-07-12 20:26:33 +0000
committermpi <mpi@openbsd.org>2014-07-12 20:26:33 +0000
commitcf8c8cdaee4b9d25cd4799550a59beef27907aa3 (patch)
treeb937ed2912868e73e68192e13cfc066cb0c6705b /sys/dev/usb/uipaq.c
parentreboot(9): Shutdown system by signaling init(8) from kernel where appropriate (diff)
downloadwireguard-openbsd-cf8c8cdaee4b9d25cd4799550a59beef27907aa3.tar.xz
wireguard-openbsd-cf8c8cdaee4b9d25cd4799550a59beef27907aa3.zip
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set
the 'dying' flag.
Diffstat (limited to 'sys/dev/usb/uipaq.c')
-rw-r--r--sys/dev/usb/uipaq.c40
1 files changed, 11 insertions, 29 deletions
diff --git a/sys/dev/usb/uipaq.c b/sys/dev/usb/uipaq.c
index e2a2ed8fdd0..3f27e857095 100644
--- a/sys/dev/usb/uipaq.c
+++ b/sys/dev/usb/uipaq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipaq.c,v 1.23 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uipaq.c,v 1.24 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -123,21 +123,16 @@ static const struct uipaq_type uipaq_devs[] = {
#define uipaq_lookup(v, p) ((struct uipaq_type *)usb_lookup(uipaq_devs, v, p))
-int uipaq_match(struct device *, void *, void *);
-void uipaq_attach(struct device *, struct device *, void *);
-int uipaq_detach(struct device *, int);
-int uipaq_activate(struct device *, int);
-
-struct cfdriver uipaq_cd = {
- NULL, "uipaq", DV_DULL
-};
-
-const struct cfattach uipaq_ca = {
- sizeof(struct uipaq_softc),
- uipaq_match,
- uipaq_attach,
- uipaq_detach,
- uipaq_activate,
+int uipaq_match(struct device *, void *, void *);
+void uipaq_attach(struct device *, struct device *, void *);
+int uipaq_detach(struct device *, int);
+
+struct cfdriver uipaq_cd = {
+ NULL, "uipaq", DV_DULL
+};
+
+const struct cfattach uipaq_ca = {
+ sizeof(struct uipaq_softc), uipaq_match, uipaq_attach, uipaq_detach
};
int
@@ -353,19 +348,6 @@ uipaq_set(void *addr, int portno, int reg, int onoff)
int
-uipaq_activate(struct device *self, int act)
-{
- struct uipaq_softc *sc = (struct uipaq_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
-int
uipaq_detach(struct device *self, int flags)
{
struct uipaq_softc *sc = (struct uipaq_softc *)self;