summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-10-26 15:56:46 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-30 08:39:30 -0500
commitfa7c70c35a24f2c5b115004c51f3b726cc630e6d (patch)
treeeda027a86178991b1eeed90aa88c9fd1156f26b0 /vl.c
parent0958b4cc8f7889b61770690fa29a1201895cf581 (diff)
downloadhqemu-fa7c70c35a24f2c5b115004c51f3b726cc630e6d.zip
hqemu-fa7c70c35a24f2c5b115004c51f3b726cc630e6d.tar.gz
usb-hid: use qdev for -usbdevice
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/vl.c b/vl.c
index a58bc06..e103e51 100644
--- a/vl.c
+++ b/vl.c
@@ -2527,31 +2527,10 @@ static void usb_msd_password_cb(void *opaque, int err)
dev->info->handle_destroy(dev);
}
-static struct {
- const char *name;
- const char *qdev;
-} usbdevs[] = {
- {
- .name = "mouse",
- .qdev = "QEMU USB Mouse",
- },{
- .name = "tablet",
- .qdev = "QEMU USB Tablet",
- },{
- .name = "keyboard",
- .qdev = "QEMU USB Keyboard",
- },{
- .name = "wacom-tablet",
- .qdev = "QEMU PenPartner Tablet",
- }
-};
-
static int usb_device_add(const char *devname, int is_hotplug)
{
const char *p;
- USBBus *bus = usb_bus_find(-1 /* any */);
USBDevice *dev = NULL;
- int i;
if (!usb_enabled)
return -1;
@@ -2561,14 +2540,6 @@ static int usb_device_add(const char *devname, int is_hotplug)
if (dev)
goto done;
- /* simple devices which don't need extra care */
- for (i = 0; i < ARRAY_SIZE(usbdevs); i++) {
- if (strcmp(devname, usbdevs[i].name) != 0)
- continue;
- dev = usb_create_simple(bus, usbdevs[i].qdev);
- goto done;
- }
-
/* the other ones */
if (strstart(devname, "host:", &p)) {
dev = usb_host_device_open(p);
OpenPOWER on IntegriCloud