diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-14 10:11:17 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-14 10:11:17 +0000 |
commit | 48939e5d0b01761f2fb9609643a9584084ac358e (patch) | |
tree | c120ec056828b2bdb3359c328b980e7c56e47562 /sys/dev/usb/ums.c | |
parent | d885abbcc7cc8875af669798ca0d6c6f6a0d1c90 (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/ums.c')
-rw-r--r-- | sys/dev/usb/ums.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index d5a33560c5b..8dc473cc0a3 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ums.c,v 1.24 2007/06/12 16:26:36 mbalmer Exp $ */ +/* $OpenBSD: ums.c,v 1.25 2007/06/14 10:11:16 mbalmer Exp $ */ /* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -124,7 +124,22 @@ const struct wsmouse_accessops ums_accessops = { ums_disable, }; -USB_DECLARE_DRIVER(ums); +int ums_match(struct device *, void *, void *); +void ums_attach(struct device *, struct device *, void *); +int ums_detach(struct device *, int); +int ums_activate(struct device *, enum devact); + +struct cfdriver ums_cd = { + NULL, "ums", DV_DULL +}; + +const struct cfattach ums_ca = { + sizeof(struct ums_softc), + ums_match, + ums_attach, + ums_detach, + ums_activate, +}; int ums_match(struct device *parent, void *match, void *aux) |