summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uplcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uplcom.c')
-rw-r--r--sys/dev/usb/uplcom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/uplcom.c b/sys/dev/usb/uplcom.c
index 3082a23..5f115b2 100644
--- a/sys/dev/usb/uplcom.c
+++ b/sys/dev/usb/uplcom.c
@@ -341,7 +341,8 @@ uplcom_match(device_t self)
static int
uplcom_attach(device_t self)
{
- USB_ATTACH_START(uplcom, sc, uaa);
+ struct uplcom_softc *sc = device_get_softc(self);
+ struct usb_attach_arg *uaa = device_get_ivars(self);
usbd_device_handle dev = uaa->device;
struct ucom_softc *ucom;
usb_config_descriptor_t *cdesc;
@@ -549,7 +550,7 @@ error:
static int
uplcom_detach(device_t self)
{
- USB_DETACH_START(uplcom, sc);
+ struct uplcom_softc *sc = device_get_softc(self);
int rv = 0;
DPRINTF(("uplcom_detach: sc = %p\n", sc));
OpenPOWER on IntegriCloud