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/ubt.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/ubt.c')
-rw-r--r-- | sys/dev/usb/ubt.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ubt.c b/sys/dev/usb/ubt.c index 0ccb824f35b..52dbc64230e 100644 --- a/sys/dev/usb/ubt.c +++ b/sys/dev/usb/ubt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubt.c,v 1.7 2007/06/12 16:26:36 mbalmer Exp $ */ +/* $OpenBSD: ubt.c,v 1.8 2007/06/14 10:11:15 mbalmer Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -245,7 +245,22 @@ void ubt_recv_sco_start1(struct ubt_softc *, struct ubt_isoc_xfer *); void ubt_recv_sco_complete(usbd_xfer_handle, usbd_private_handle, usbd_status); -USB_DECLARE_DRIVER(ubt); +int ubt_match(struct device *, void *, void *); +void ubt_attach(struct device *, struct device *, void *); +int ubt_detach(struct device *, int); +int ubt_activate(struct device *, enum devact); + +struct cfdriver ubt_cd = { + NULL, "ubt", DV_DULL +}; + +const struct cfattach ubt_ca = { + sizeof(struct ubt_softc), + ubt_match, + ubt_attach, + ubt_detach, + ubt_activate, +}; static int ubt_set_isoc_config(struct ubt_softc *); static void ubt_abortdealloc(struct ubt_softc *); |