Patchwork [03/11] config: fix compile for CONFIG_VMWARE_VGA=n

login
register
mail settings
Submitter David S. Ahern
Date Jan. 14, 2011, 7:12 p.m.
Message ID <1295032341-6926-4-git-send-email-daahern@cisco.com>
Download mbox | patch
Permalink /patch/78997/
State New
Headers show

Comments

David S. Ahern - Jan. 14, 2011, 7:12 p.m.
Signed-off-by: David Ahern <daahern@cisco.com>
---
 hw/pc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/pc.c b/hw/pc.c
index fface7d..50795e8 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1069,11 +1069,13 @@  void pc_vga_init(PCIBus *pci_bus)
         } else {
             isa_cirrus_vga_init();
         }
+#ifdef CONFIG_VMWARE_VGA
     } else if (vmsvga_enabled) {
         if (pci_bus)
             pci_vmsvga_init(pci_bus);
         else
             fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __FUNCTION__);
+#endif
 #ifdef CONFIG_SPICE
     } else if (qxl_enabled) {
         if (pci_bus)