diff options
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r-- | sys/dev/usb/usb.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 70c7516..586bcb4 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -404,14 +404,9 @@ usb_needs_explore(bus) int usb_detach(device_t self) { - char *devinfo = (char *) device_get_desc(self); + DPRINTF(("%s: disconnected\n", USBDEVNAME(self))); - if (devinfo) { - device_set_desc(self, NULL); - free(devinfo, M_USB); - } - - return (0); + return (1); } DRIVER_MODULE(usb, root, usb_driver, usb_devclass, 0, 0); |