mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
usb: replace handle_destroy with unrealize
Curiously, unrealize() is not being used, but it seems more appropriate than handle_destroy() together with realize(). It is more ubiquitous destroy name in qemu code base and may throw errors. Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20170221141451.28305-25-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
796b288f7b
commit
c4fe9700e6
12 changed files with 25 additions and 29 deletions
|
@ -1065,7 +1065,7 @@ static void usb_host_instance_init(Object *obj)
|
|||
&udev->qdev, NULL);
|
||||
}
|
||||
|
||||
static void usb_host_handle_destroy(USBDevice *udev)
|
||||
static void usb_host_unrealize(USBDevice *udev, Error **errp)
|
||||
{
|
||||
USBHostDevice *s = USB_HOST_DEVICE(udev);
|
||||
|
||||
|
@ -1568,7 +1568,7 @@ static void usb_host_class_initfn(ObjectClass *klass, void *data)
|
|||
uc->handle_data = usb_host_handle_data;
|
||||
uc->handle_control = usb_host_handle_control;
|
||||
uc->handle_reset = usb_host_handle_reset;
|
||||
uc->handle_destroy = usb_host_handle_destroy;
|
||||
uc->unrealize = usb_host_unrealize;
|
||||
uc->flush_ep_queue = usb_host_flush_ep_queue;
|
||||
uc->alloc_streams = usb_host_alloc_streams;
|
||||
uc->free_streams = usb_host_free_streams;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue