]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
r2d: Don't use legacy -usbdevice support for setting up board
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Feb 2015 12:28:13 +0000 (13:28 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Feb 2015 09:53:10 +0000 (10:53 +0100)
It's tempting, because usbdevice_create() is so simple to use.  But
there's a lot of unwanted complexity behind the simple interface.
Switch to usb_create_simple().

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/sh4/r2d.c

index 12f44d28f00a45cfdf0f31488eb7c4e9096bcde6..d1d0847ba2b34120869e57e5c073d4a17e6f6013 100644 (file)
@@ -301,7 +301,7 @@ static void r2d_init(MachineState *machine)
                             "rtl8139", i==0 ? "2" : NULL);
 
     /* USB keyboard */
-    usbdevice_create("keyboard");
+    usb_create_simple(usb_bus_find(-1), "usb-kbd");
 
     /* Todo: register on board registers */
     memset(&boot_params, 0, sizeof(boot_params));