]> git.proxmox.com Git - qemu.git/commit - vl.c
usb: Resolve warnings about unassigned bus on usb device creation
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Feb 2012 14:18:47 +0000 (15:18 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Feb 2012 14:40:53 +0000 (15:40 +0100)
commit3741715cf2e54727fe3d9884ea6dcea68c7f7d4b
tree99dfc7e4ca9c85e5fd3ace161b125169ae4c87e8
parente64722108c1342d499d408c386ce65794c44dd63
usb: Resolve warnings about unassigned bus on usb device creation

When creating an USB device the old way, there is no way to specify the
target bus. Thus the warning issued by usb_create makes no sense and
rather confuses our users.

Resolve this by passing a bus reference to the usbdevice_init handler
and letting those handlers forward it to usb_create.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-bt.c
hw/usb-bus.c
hw/usb-msd.c
hw/usb-net.c
hw/usb-serial.c
hw/usb.h
usb-bsd.c
usb-linux.c
vl.c