summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uaudio.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/uaudio.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/uaudio.c')
-rw-r--r--sys/dev/usb/uaudio.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 9e9b1e20ee4..f6fd49336f1 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.47 2007/06/13 10:10:30 mbalmer Exp $ */
+/* $OpenBSD: uaudio.c,v 1.48 2007/06/14 10:11:15 mbalmer Exp $ */
/* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */
/*
@@ -358,7 +358,22 @@ struct audio_device uaudio_device = {
"uaudio"
};
-USB_DECLARE_DRIVER(uaudio);
+int uaudio_match(struct device *, void *, void *);
+void uaudio_attach(struct device *, struct device *, void *);
+int uaudio_detach(struct device *, int);
+int uaudio_activate(struct device *, enum devact);
+
+struct cfdriver uaudio_cd = {
+ NULL, "uaudio", DV_DULL
+};
+
+const struct cfattach uaudio_ca = {
+ sizeof(struct uaudio_softc),
+ uaudio_match,
+ uaudio_attach,
+ uaudio_detach,
+ uaudio_activate,
+};
int
uaudio_match(struct device *parent, void *match, void *aux)