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/usscanner.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/usscanner.c')
-rw-r--r-- | sys/dev/usb/usscanner.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/usscanner.c b/sys/dev/usb/usscanner.c index ce04b68a07d..0a4a88f2073 100644 --- a/sys/dev/usb/usscanner.c +++ b/sys/dev/usb/usscanner.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usscanner.c,v 1.21 2007/06/13 06:25:03 mbalmer Exp $ */ +/* $OpenBSD: usscanner.c,v 1.22 2007/06/14 10:11:16 mbalmer Exp $ */ /* $NetBSD: usscanner.c,v 1.6 2001/01/23 14:04:14 augustss Exp $ */ /* @@ -170,7 +170,22 @@ callback usscanner_data_cb; callback usscanner_sensecmd_cb; callback usscanner_sensedata_cb; -USB_DECLARE_DRIVER(usscanner); +int usscanner_match(struct device *, void *, void *); +void usscanner_attach(struct device *, struct device *, void *); +int usscanner_detach(struct device *, int); +int usscanner_activate(struct device *, enum devact); + +struct cfdriver usscanner_cd = { + NULL, "usscanner", DV_DULL +}; + +const struct cfattach usscanner_ca = { + sizeof(struct usscanner_softc), + usscanner_match, + usscanner_attach, + usscanner_detach, + usscanner_activate, +}; int usscanner_match(struct device *parent, void *match, void *aux) |