From 8a5e33cc1aa57a9fbe22527e19dabae2c6073039 Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Thu, 30 Dec 2010 03:06:32 +0000 Subject: backout previous. this is not a regular usb device driver, and thus has no usbd_device. found the hard way by deraadt --- sys/dev/usb/if_cdcef.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/if_cdcef.c b/sys/dev/usb/if_cdcef.c index 74f12ea27ec..f8be8fa671e 100644 --- a/sys/dev/usb/if_cdcef.c +++ b/sys/dev/usb/if_cdcef.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdcef.c,v 1.26 2010/12/27 03:03:50 jakemsr Exp $ */ +/* $OpenBSD: if_cdcef.c,v 1.27 2010/12/30 03:06:31 jakemsr Exp $ */ /* * Copyright (c) 2007 Dale Rahn @@ -87,7 +87,6 @@ struct cdcef_softc { int cdcef_match(struct device *, void *, void *); void cdcef_attach(struct device *, struct device *, void *); -int cdcef_activate(struct device *, int); usbf_status cdcef_do_request(usbf_function_handle, usb_device_request_t *, void **); @@ -107,8 +106,7 @@ struct mbuf * cdcef_newbuf(void); void cdcef_start_timeout (void *); struct cfattach cdcef_ca = { - sizeof(struct cdcef_softc), cdcef_match, cdcef_attach, NULL, - cdcef_activate + sizeof(struct cdcef_softc), cdcef_match, cdcef_attach }; struct cfdriver cdcef_cd = { @@ -268,23 +266,6 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) splx(s); } -int -cdcef_activate(struct device *self, int act) -{ - struct cdcef_softc *sc = (struct cdcef_softc *)self; - - switch (act) { - case DVACT_ACTIVATE: - break; - - case DVACT_DEACTIVATE: - usbd_deactivate(sc->sc_udev); - break; - } - - return 0; -} - usbf_status cdcef_do_request(usbf_function_handle fun, usb_device_request_t *req, void **data) -- cgit v1.2.3