mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
usb-host: remove usb_host_device_close
Nobody implements that anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
4075975d83
commit
1a3973b33d
5 changed files with 3 additions and 38 deletions
|
@ -1540,30 +1540,6 @@ static void usb_host_register_types(void)
|
|||
|
||||
type_init(usb_host_register_types)
|
||||
|
||||
int usb_host_device_close(const char *devname)
|
||||
{
|
||||
#if 0
|
||||
char product_name[PRODUCT_NAME_SZ];
|
||||
int bus_num, addr;
|
||||
USBHostDevice *s;
|
||||
|
||||
if (strstr(devname, "auto:")) {
|
||||
return usb_host_auto_del(devname);
|
||||
}
|
||||
if (usb_host_find_device(&bus_num, &addr, product_name,
|
||||
sizeof(product_name), devname) < 0) {
|
||||
return -1;
|
||||
}
|
||||
s = hostdev_find(bus_num, addr);
|
||||
if (s) {
|
||||
usb_device_delete_addr(s->bus_num, s->dev.addr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read sys file-system device file
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue