From: Aurelien Jarno Date: Sat, 8 Sep 2012 10:40:45 +0000 (+0200) Subject: ppc/pSeries: use the new pci_vga_init() function X-Git-Tag: v1.3.0-rc0~352 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1ddcae82a2509668b94a13e84921bdcafddcdfff;p=users%2Fdwmw2%2Fqemu.git ppc/pSeries: use the new pci_vga_init() function Keep the case to prevent some vga card to be selected. Cc: Alexander Graf Cc: David Gibson Signed-off-by: Aurelien Jarno --- diff --git a/hw/spapr.c b/hw/spapr.c index 80735d6ab4..8b0c390269 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -46,7 +46,6 @@ #include "kvm.h" #include "kvm_ppc.h" #include "pci.h" -#include "vga-pci.h" #include "exec-memory.h" #include "hw/usb.h" @@ -589,11 +588,9 @@ static void spapr_cpu_reset(void *opaque) static int spapr_vga_init(PCIBus *pci_bus) { switch (vga_interface_type) { - case VGA_STD: - pci_std_vga_init(pci_bus); - return 1; case VGA_NONE: - return 0; + case VGA_STD: + return pci_vga_init(pci_bus) != NULL; default: fprintf(stderr, "This vga model is not supported," "currently it only supports -vga std\n");