summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ukbd.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/ukbd.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/ukbd.c')
-rw-r--r--sys/dev/usb/ukbd.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index 339fb1493ce..8f7868a64c4 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukbd.c,v 1.35 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: ukbd.c,v 1.36 2007/06/14 10:11:16 mbalmer Exp $ */
/* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -328,7 +328,22 @@ struct wskbd_mapdata ukbd_keymapdata = {
ukbd_keydesctab
};
-USB_DECLARE_DRIVER(ukbd);
+int ukbd_match(struct device *, void *, void *);
+void ukbd_attach(struct device *, struct device *, void *);
+int ukbd_detach(struct device *, int);
+int ukbd_activate(struct device *, enum devact);
+
+struct cfdriver ukbd_cd = {
+ NULL, "ukbd", DV_DULL
+};
+
+const struct cfattach ukbd_ca = {
+ sizeof(struct ukbd_softc),
+ ukbd_match,
+ ukbd_attach,
+ ukbd_detach,
+ ukbd_activate,
+};
int
ukbd_match(struct device *parent, void *match, void *aux)