]> git.proxmox.com Git - qemu.git/blobdiff - hw/vmware_vga.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / vmware_vga.h
index e7bcb22146f4c2d7e290e5eee33d9c16f1dc1127..5132573a56f3ad239642201cf568c19e24629110 100644 (file)
@@ -4,9 +4,16 @@
 #include "qemu-common.h"
 
 /* vmware_vga.c */
-static inline void pci_vmsvga_init(PCIBus *bus)
+static inline bool pci_vmsvga_init(PCIBus *bus)
 {
-    pci_create_simple(bus, -1, "vmware-svga");
+    PCIDevice *dev;
+
+    dev = pci_try_create(bus, -1, "vmware-svga");
+    if (!dev || qdev_init(&dev->qdev) < 0) {
+        return false;
+    } else {
+        return true;
+    }
 }
 
 #endif