From e5a9bece9b5064d0cb0fda68ff68b9361085f400 Mon Sep 17 00:00:00 2001 From: Gonglei Date: Wed, 4 Jun 2014 16:31:46 +0800 Subject: usb: add usb_bus_release function add global variables releasing logic when the usb buses were removed or hot-unpluged. Signed-off-by: Gonglei Signed-off-by: Gerd Hoffmann --- include/hw/usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/hw/usb.h b/include/hw/usb.h index 223a5aef8f..6b32a3bb70 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -529,6 +529,7 @@ struct USBBusOps { void usb_bus_new(USBBus *bus, size_t bus_size, USBBusOps *ops, DeviceState *host); +void usb_bus_release(USBBus *bus); USBBus *usb_bus_find(int busnr); void usb_legacy_register(const char *typename, const char *usbdevice_name, USBDevice *(*usbdevice_init)(USBBus *bus, -- cgit v1.2.3-55-g7522