summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udcf.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
commit48939e5d0b01761f2fb9609643a9584084ac358e (patch)
treec120ec056828b2bdb3359c328b980e7c56e47562 /sys/dev/usb/udcf.c
parentd885abbcc7cc8875af669798ca0d6c6f6a0d1c90 (diff)
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
Diffstat (limited to 'sys/dev/usb/udcf.c')
-rw-r--r--sys/dev/usb/udcf.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c
index ac64f76c907..93cb4ddc0be 100644
--- a/sys/dev/usb/udcf.c
+++ b/sys/dev/usb/udcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udcf.c,v 1.37 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: udcf.c,v 1.38 2007/06/14 10:11:15 mbalmer Exp $ */
/*
* Copyright (c) 2006 Marc Balmer <mbalmer@openbsd.org>
@@ -133,7 +133,22 @@ void udcf_sl_probe(void *);
void udcf_it_probe(void *);
void udcf_ct_probe(void *);
-USB_DECLARE_DRIVER(udcf);
+int udcf_match(struct device *, void *, void *);
+void udcf_attach(struct device *, struct device *, void *);
+int udcf_detach(struct device *, int);
+int udcf_activate(struct device *, enum devact);
+
+struct cfdriver udcf_cd = {
+ NULL, "udcf", DV_DULL
+};
+
+const struct cfattach udcf_ca = {
+ sizeof(struct udcf_softc),
+ udcf_match,
+ udcf_attach,
+ udcf_detach,
+ udcf_activate,
+};
int
udcf_match(struct device *parent, void *match, void *aux)