hw/usb: simplified usb_enabled

The argument is not longer used and the implementation
uses now QOM instead of QemuOpts.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Marcel Apfelbaum 2015-01-06 15:29:14 +02:00 committed by Alexander Graf
parent 759bf45d81
commit 09f28e5b51
12 changed files with 17 additions and 18 deletions

View file

@ -1530,7 +1530,7 @@ static void ppc_spapr_init(MachineState *machine)
spapr->has_graphics = true;
}
if ((spapr->has_graphics && defaults_enabled()) || usb_enabled(false)) {
if ((spapr->has_graphics && defaults_enabled()) || usb_enabled()) {
pci_create_simple(phb->bus, -1, "pci-ohci");
if (spapr->has_graphics) {
usbdevice_create("keyboard");