usb-serial and braille: use qdev for -usbdevice

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gerd Hoffmann 2009-10-26 15:56:47 +01:00 committed by Anthony Liguori
parent fa7c70c35a
commit 2b0efdc3e1
5 changed files with 65 additions and 38 deletions

6
vl.c
View file

@ -2558,12 +2558,6 @@ static int usb_device_add(const char *devname, int is_hotplug)
return 0;
}
}
} else if (strstart(devname, "serial:", &p)) {
dev = usb_serial_init(p);
#ifdef CONFIG_BRLAPI
} else if (!strcmp(devname, "braille")) {
dev = usb_baum_init();
#endif
} else if (strstart(devname, "net:", &p)) {
QemuOpts *opts;
int idx;