]> git.proxmox.com Git - qemu.git/commitdiff
vmware_vga: refactor device creation
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 5 Feb 2011 14:34:19 +0000 (14:34 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 12 Feb 2011 08:27:53 +0000 (08:27 +0000)
Turn vmsvga_init into an inline function.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/vmware_vga.c
hw/vmware_vga.h

index 6c590533081b4469ddfc95aefb2d4fe0e18783cd..4656767964abdbc04878b745b2b9ea13cfdf150f 100644 (file)
@@ -1309,11 +1309,6 @@ static int pci_vmsvga_initfn(PCIDevice *dev)
     return 0;
 }
 
-void pci_vmsvga_init(PCIBus *bus)
-{
-    pci_create_simple(bus, -1, "vmware-svga");
-}
-
 static PCIDeviceInfo vmsvga_info = {
     .qdev.name    = "vmware-svga",
     .qdev.size    = sizeof(struct pci_vmsvga_state_s),
index 2e0813c81b814c02af0869724623b88bdd7c256b..e7bcb22146f4c2d7e290e5eee33d9c16f1dc1127 100644 (file)
@@ -4,6 +4,9 @@
 #include "qemu-common.h"
 
 /* vmware_vga.c */
-void pci_vmsvga_init(PCIBus *bus);
+static inline void pci_vmsvga_init(PCIBus *bus)
+{
+    pci_create_simple(bus, -1, "vmware-svga");
+}
 
 #endif