]> git.proxmox.com Git - qemu.git/commitdiff
Unbreak USB autoconnect filters
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Oct 2009 23:15:55 +0000 (01:15 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Oct 2009 13:54:51 +0000 (08:54 -0500)
Commit 22f84e73 added a qdev_init() missing on the path through
usb_host_device_open(), but that broke the path through
usb_host_auto_scan(), which already had one.  Remove that one.

Patchworks-ID: 35169
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
usb-linux.c

index 2b7b09214e620ba40063ff1ff649b844391050c1..77cbf1ba6ccee3a9fa3d6ebfefcea839a137cf20 100644 (file)
@@ -1396,8 +1396,6 @@ static int usb_host_auto_scan(void *opaque, int bus_num, int addr,
         dprintf("husb: auto open: bus_num %d addr %d\n", bus_num, addr);
 
        dev = usb_host_device_open_addr(bus_num, addr, product_name);
-       if (dev)
-            qdev_init(&dev->qdev);
     }
 
     return 0;