mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -617,7 +617,7 @@ static void usb_audio_handle_data(USBDevice *dev, USBPacket *p)
|
|||
}
|
||||
}
|
||||
|
||||
static void usb_audio_handle_destroy(USBDevice *dev)
|
||||
static void usb_audio_unrealize(USBDevice *dev, Error **errp)
|
||||
{
|
||||
USBAudioState *s = USB_AUDIO(dev);
|
||||
|
||||
|
@ -683,7 +683,7 @@ static void usb_audio_class_init(ObjectClass *klass, void *data)
|
|||
k->handle_reset = usb_audio_handle_reset;
|
||||
k->handle_control = usb_audio_handle_control;
|
||||
k->handle_data = usb_audio_handle_data;
|
||||
k->handle_destroy = usb_audio_handle_destroy;
|
||||
k->unrealize = usb_audio_unrealize;
|
||||
k->set_interface = usb_audio_set_interface;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue