diff options
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r-- | sys/dev/usb/uhid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index d424780..e31a531 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -109,7 +109,7 @@ SYSCTL_INT(_hw_usb_uhid, OID_AUTO, debug, CTLFLAG_RW, #endif struct uhid_softc { - USBBASEDEVICE sc_dev; /* base device */ + device_t sc_dev; /* base device */ usbd_device_handle sc_udev; usbd_interface_handle sc_iface; /* interface */ usbd_pipe_handle sc_intrpipe; /* interrupt pipe */ @@ -234,7 +234,7 @@ USB_ATTACH(uhid) ed = usbd_interface2endpoint_descriptor(iface, 0); if (ed == NULL) { printf("%s: could not read endpoint descriptor\n", - USBDEVNAME(sc->sc_dev)); + device_get_nameunit(sc->sc_dev)); sc->sc_dying = 1; USB_ATTACH_ERROR_RETURN; } @@ -250,7 +250,7 @@ USB_ATTACH(uhid) if (UE_GET_DIR(ed->bEndpointAddress) != UE_DIR_IN || (ed->bmAttributes & UE_XFERTYPE) != UE_INTERRUPT) { - printf("%s: unexpected endpoint\n", USBDEVNAME(sc->sc_dev)); + printf("%s: unexpected endpoint\n", device_get_nameunit(sc->sc_dev)); sc->sc_dying = 1; USB_ATTACH_ERROR_RETURN; } @@ -305,7 +305,7 @@ USB_ATTACH(uhid) } if (err) { - printf("%s: no report descriptor\n", USBDEVNAME(sc->sc_dev)); + printf("%s: no report descriptor\n", device_get_nameunit(sc->sc_dev)); sc->sc_dying = 1; USB_ATTACH_ERROR_RETURN; } |