usb-host: use qdev for -usbdevice + rework.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 26 Oct 2009 14:56:50 +0000 (15:56 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 30 Oct 2009 13:39:32 +0000 (08:39 -0500)
commitf4de821691ed4f7653a0d88f74a6355851e0f2ff
tree73f2637db4313d2b37bfaefaf02a76a99ce469b9
parentff9a84e1d1c78b1bb68c8cfa8c6a73bc943c4ed1
usb-host: use qdev for -usbdevice + rework.

Changes:

 * We don't create/delete devices, we attach/detach them instead.
 * The separate autofilter list is gone, we simply walk the list
   of devices directly instead.
 * Autofiltering is done unconditionally now.  Non-auto device scan
   code got dropped.
 * Autofiltering turns off the timer if there is nothing to do, it
   runs only in case there are unattached host devices.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
usb-linux.c