Commit 4ee9ced9 authored by Marcel Apfelbaum's avatar Marcel Apfelbaum Committed by Alexander Graf
Browse files

hw/ppc/spapr: simplify usb controller creation logic

parent b8cbc738
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1528,9 +1528,10 @@ static void ppc_spapr_init(MachineState *machine)
    /* Graphics */
    if (spapr_vga_init(phb->bus)) {
        spapr->has_graphics = true;
        machine->usb |= defaults_enabled();
    }

    if ((spapr->has_graphics && defaults_enabled()) || usb_enabled()) {
    if (machine->usb) {
        pci_create_simple(phb->bus, -1, "pci-ohci");
        if (spapr->has_graphics) {
            usbdevice_create("keyboard");