Fix pci_vga_init() not to ignore bus argument
authorMarkus Armbruster <armbru@redhat.com>
Fri, 25 Sep 2009 01:53:48 +0000 (03:53 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:53 +0000 (09:32 -0500)
commit122f19a5ebc35c8a44cd10c377ac294c9dc0f260
tree98301ac79d5fac590a465d4d4d0c0064003ba43c
parentc7f90bb8d55aefcc4ead70b19c75c752e15d422e
Fix pci_vga_init() not to ignore bus argument

Commit a414c306 converted all VGA devices to qdev.  It used
pci_create_simple() for all devices, except for this one it used
pci_create().  That's wrong, because it uses PCI bus#0 regardless of
the bus argument.  Fix by switching to pci_create_noinit().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga-pci.c