From 3741715cf2e54727fe3d9884ea6dcea68c7f7d4b Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 27 Feb 2012 15:18:47 +0100 Subject: 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 Signed-off-by: Gerd Hoffmann --- hw/usb-bt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/usb-bt.c') diff --git a/hw/usb-bt.c b/hw/usb-bt.c index 649bdcf2d..23c39ecc2 100644 --- a/hw/usb-bt.c +++ b/hw/usb-bt.c @@ -498,14 +498,14 @@ static int usb_bt_initfn(USBDevice *dev) return 0; } -USBDevice *usb_bt_init(HCIInfo *hci) +USBDevice *usb_bt_init(USBBus *bus, HCIInfo *hci) { USBDevice *dev; struct USBBtState *s; if (!hci) return NULL; - dev = usb_create_simple(NULL /* FIXME */, "usb-bt-dongle"); + dev = usb_create_simple(bus, "usb-bt-dongle"); if (!dev) { return NULL; } -- cgit v1.2.3