diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 235057706cb..51479bf834d 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -173,6 +173,7 @@ ucom_attach(device_t self) usb_device_set_desc(self, devinfo); printf("%s%d", device_get_name(self), device_get_unit(self)); #endif + sc->sc_dev = self; printf(": %s, iclass %d/%d\n", devinfo, id->bInterfaceClass, id->bInterfaceSubClass); diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index 07cf6d418ea..4153187bd60 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -174,6 +174,7 @@ umodem_attach(device_t self) usb_device_set_desc(self, devinfo); printf("%s%d", device_get_name(self), device_get_unit(self)); #endif + sc->sc_dev = self; printf(": %s, iclass %d/%d\n", devinfo, id->bInterfaceClass, id->bInterfaceSubClass);