summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ulpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/ulpt.c')
-rw-r--r--sys/dev/usb/ulpt.c36
1 files changed, 9 insertions, 27 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index 81ae3d146a7..436c0f9d77f 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ulpt.c,v 1.46 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: ulpt.c,v 1.47 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: ulpt.c,v 1.57 2003/01/05 10:19:42 scw Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
@@ -154,21 +154,16 @@ void ieee1284_print_id(char *);
#define ULPTFLAGS(s) (minor(s) & 0xe0)
-int ulpt_match(struct device *, void *, void *);
-void ulpt_attach(struct device *, struct device *, void *);
-int ulpt_detach(struct device *, int);
-int ulpt_activate(struct device *, int);
+int ulpt_match(struct device *, void *, void *);
+void ulpt_attach(struct device *, struct device *, void *);
+int ulpt_detach(struct device *, int);
-struct cfdriver ulpt_cd = {
- NULL, "ulpt", DV_DULL
-};
+struct cfdriver ulpt_cd = {
+ NULL, "ulpt", DV_DULL
+};
-const struct cfattach ulpt_ca = {
- sizeof(struct ulpt_softc),
- ulpt_match,
- ulpt_attach,
- ulpt_detach,
- ulpt_activate,
+const struct cfattach ulpt_ca = {
+ sizeof(struct ulpt_softc), ulpt_match, ulpt_attach, ulpt_detach
};
int
@@ -358,19 +353,6 @@ ulpt_attach(struct device *parent, struct device *self, void *aux)
}
int
-ulpt_activate(struct device *self, int act)
-{
- struct ulpt_softc *sc = (struct ulpt_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
-int
ulpt_detach(struct device *self, int flags)
{
struct ulpt_softc *sc = (struct ulpt_softc *)self;