diff options
| author | Nick Hibma <n_hibma@FreeBSD.org> | 1999-01-22 00:51:12 +0000 |
|---|---|---|
| committer | Nick Hibma <n_hibma@FreeBSD.org> | 1999-01-22 00:51:12 +0000 |
| commit | 235dddd4eaacdb94823b8041ddd5ba5cdd006388 (patch) | |
| tree | c01b467b5204c7b7ae92ddbb4d57fa8998ba8e3c /sys/dev/usb/usb.c | |
| parent | 5602b5091c31ba1a8aab08b8a7328a9055929517 (diff) | |
Notes
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 70c75166b266..586bcb4f49c7 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); |
