vmware_vga: refactor device creation
Turn vmsvga_init into an inline function. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
55619bb667
commit
5c81e4ca9e
|
@ -1309,11 +1309,6 @@ static int pci_vmsvga_initfn(PCIDevice *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pci_vmsvga_init(PCIBus *bus)
|
|
||||||
{
|
|
||||||
pci_create_simple(bus, -1, "vmware-svga");
|
|
||||||
}
|
|
||||||
|
|
||||||
static PCIDeviceInfo vmsvga_info = {
|
static PCIDeviceInfo vmsvga_info = {
|
||||||
.qdev.name = "vmware-svga",
|
.qdev.name = "vmware-svga",
|
||||||
.qdev.size = sizeof(struct pci_vmsvga_state_s),
|
.qdev.size = sizeof(struct pci_vmsvga_state_s),
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
|
||||||
/* vmware_vga.c */
|
/* 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
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue