From 48939e5d0b01761f2fb9609643a9584084ac358e Mon Sep 17 00:00:00 2001 From: Marc Balmer Date: Thu, 14 Jun 2007 10:11:17 +0000 Subject: Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros. No binary change. ok dlg. --- sys/dev/usb/uslcom.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/uslcom.c') diff --git a/sys/dev/usb/uslcom.c b/sys/dev/usb/uslcom.c index 7d84b062b41..18b0e500614 100644 --- a/sys/dev/usb/uslcom.c +++ b/sys/dev/usb/uslcom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uslcom.c,v 1.12 2007/06/13 06:25:03 mbalmer Exp $ */ +/* $OpenBSD: uslcom.c,v 1.13 2007/06/14 10:11:16 mbalmer Exp $ */ /* * Copyright (c) 2006 Jonathan Gray @@ -129,7 +129,22 @@ static const struct usb_devno uslcom_devs[] = { { USB_VENDOR_USI, USB_PRODUCT_USI_MC60 } }; -USB_DECLARE_DRIVER(uslcom); +int uslcom_match(struct device *, void *, void *); +void uslcom_attach(struct device *, struct device *, void *); +int uslcom_detach(struct device *, int); +int uslcom_activate(struct device *, enum devact); + +struct cfdriver uslcom_cd = { + NULL, "uslcom", DV_DULL +}; + +const struct cfattach uslcom_ca = { + sizeof(struct uslcom_softc), + uslcom_match, + uslcom_attach, + uslcom_detach, + uslcom_activate, +}; int uslcom_match(struct device *parent, void *match, void *aux) -- cgit v1.2.3