summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2007-06-14 10:11:15 +0000
committermbalmer <mbalmer@openbsd.org>2007-06-14 10:11:15 +0000
commit9f5f6d504a0cbb684120cfba32c9bc24deaf87fa (patch)
tree1177c930ce9a5bd0aefc7289aeb5857031509468 /sys/dev/usb/uhid.c
parentI don't know what we will do with system packages yet, but prevent (diff)
downloadwireguard-openbsd-9f5f6d504a0cbb684120cfba32c9bc24deaf87fa.tar.xz
wireguard-openbsd-9f5f6d504a0cbb684120cfba32c9bc24deaf87fa.zip
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/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index a6a27ce0132..d25a9cda307 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.40 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: uhid.c,v 1.41 2007/06/14 10:11:15 mbalmer Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -108,7 +108,22 @@ int uhid_do_write(struct uhid_softc *, struct uio *uio, int);
int uhid_do_ioctl(struct uhid_softc*, u_long, caddr_t, int,
struct proc *);
-USB_DECLARE_DRIVER(uhid);
+int uhid_match(struct device *, void *, void *);
+void uhid_attach(struct device *, struct device *, void *);
+int uhid_detach(struct device *, int);
+int uhid_activate(struct device *, enum devact);
+
+struct cfdriver uhid_cd = {
+ NULL, "uhid", DV_DULL
+};
+
+const struct cfattach uhid_ca = {
+ sizeof(struct uhid_softc),
+ uhid_match,
+ uhid_attach,
+ uhid_detach,
+ uhid_activate,
+};
int
uhid_match(struct device *parent, void *match, void *aux)