[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/19] dev-bluetooth: convert init to realize
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 11/19] dev-bluetooth: convert init to realize |
Date: |
Thu, 18 Sep 2014 12:14:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
Il 18/09/2014 11:32, address@hidden ha scritto:
> From: Gonglei <address@hidden>
>
> Signed-off-by: Gonglei <address@hidden>
> ---
> hw/usb/dev-bluetooth.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/usb/dev-bluetooth.c b/hw/usb/dev-bluetooth.c
> index a76e581..7db9921 100644
> --- a/hw/usb/dev-bluetooth.c
> +++ b/hw/usb/dev-bluetooth.c
> @@ -501,7 +501,7 @@ static void usb_bt_handle_destroy(USBDevice *dev)
> s->hci->acl_recv = NULL;
> }
>
> -static int usb_bt_initfn(USBDevice *dev)
> +static void usb_bt_realize(USBDevice *dev, Error **errp)
> {
> struct USBBtState *s = DO_UPCAST(struct USBBtState, dev, dev);
>
> @@ -516,8 +516,6 @@ static int usb_bt_initfn(USBDevice *dev)
> s->hci->acl_recv = usb_bt_out_hci_packet_acl;
> usb_bt_handle_reset(&s->dev);
> s->intr = usb_ep_get(dev, USB_TOKEN_IN, USB_EVT_EP);
> -
> - return 0;
> }
>
> static USBDevice *usb_bt_init(USBBus *bus, const char *cmdline)
> @@ -560,7 +558,7 @@ static void usb_bt_class_initfn(ObjectClass *klass, void
> *data)
> DeviceClass *dc = DEVICE_CLASS(klass);
> USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
>
> - uc->init = usb_bt_initfn;
> + uc->realize = usb_bt_realize;
> uc->product_desc = "QEMU BT dongle";
> uc->usb_desc = &desc_bluetooth;
> uc->handle_reset = usb_bt_handle_reset;
>
Reviewed-by: Paolo Bonzini <address@hidden>
- Re: [Qemu-devel] [PATCH 14/19] dev-hid: convert init to realize, (continued)
- [Qemu-devel] [PATCH 16/19] usb-audio: convert init to realize, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 15/19] dev-wacom: convert init to realize, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 09/19] dev-uas: convert init to realize, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 05/19] libusb: using error_report instead of fprintf, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 11/19] dev-bluetooth: convert init to realize, arei.gonglei, 2014/09/18
- Re: [Qemu-devel] [PATCH 11/19] dev-bluetooth: convert init to realize,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 17/19] usb-redir: convert init to realize, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 07/19] dev-storage: convert init to realize, arei.gonglei, 2014/09/18
- [Qemu-devel] [PATCH 03/19] usb-net: convert init to realize, arei.gonglei, 2014/09/18