Revision 059809e4 vl.c
b/vl.c | ||
---|---|---|
3781 | 3781 |
{ |
3782 | 3782 |
USBPort *port; |
3783 | 3783 |
USBPort **lastp; |
3784 |
USBDevice *dev; |
|
3784 | 3785 |
int bus_num, addr; |
3785 | 3786 |
const char *p; |
3786 | 3787 |
|
... | ... | |
3805 | 3806 |
if (!port) |
3806 | 3807 |
return -1; |
3807 | 3808 |
|
3809 |
dev = port->dev; |
|
3808 | 3810 |
*lastp = port->next; |
3809 | 3811 |
usb_attach(port, NULL); |
3812 |
dev->handle_destroy(dev); |
|
3810 | 3813 |
port->next = free_usb_ports; |
3811 | 3814 |
free_usb_ports = port; |
3812 | 3815 |
return 0; |
Also available in: Unified diff