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/ucom.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/ucom.c')
-rw-r--r-- | sys/dev/usb/ucom.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 0c08464b700..22d184745ea 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ucom.c,v 1.40 2007/06/12 16:26:36 mbalmer Exp $ */ +/* $OpenBSD: ucom.c,v 1.41 2007/06/14 10:11:15 mbalmer Exp $ */ /* $NetBSD: ucom.c,v 1.49 2003/01/01 00:10:25 thorpej Exp $ */ /* @@ -148,7 +148,22 @@ int ucom_to_tiocm(struct ucom_softc *); void ucom_lock(struct ucom_softc *); void ucom_unlock(struct ucom_softc *); -USB_DECLARE_DRIVER(ucom); +int ucom_match(struct device *, void *, void *); +void ucom_attach(struct device *, struct device *, void *); +int ucom_detach(struct device *, int); +int ucom_activate(struct device *, enum devact); + +struct cfdriver ucom_cd = { + NULL, "ucom", DV_DULL +}; + +const struct cfattach ucom_ca = { + sizeof(struct ucom_softc), + ucom_match, + ucom_attach, + ucom_detach, + ucom_activate, +}; void ucom_lock(struct ucom_softc *sc) |