diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-12 13:17:02 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 08:40:54 +0200 |
commit | 628e54857a82a3cb65ef96c12640c30d6307a064 (patch) | |
tree | f02238c4557498e1d62f3b59219967693efd09be /hw | |
parent | bc45de8c21dfc3bc3896a78b33d5a6d9e710dfff (diff) |
usb-host-libusb: set USB_DEV_FLAG_IS_HOST
... like host-{linux,bsd}.c do.
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb/host-libusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 0c12b0fddd..e2f3cc8ade 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -895,6 +895,7 @@ static int usb_host_initfn(USBDevice *udev) USBHostDevice *s = USB_HOST_DEVICE(udev); loglevel = s->loglevel; + udev->flags |= (1 << USB_DEV_FLAG_IS_HOST); udev->auto_attach = 0; QTAILQ_INIT(&s->requests); QTAILQ_INIT(&s->isorings); |