mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
pci: Rename pci_root_bus_new_inplace() to pci_root_bus_init()
Rename the pci_root_bus_new_inplace() function to pci_root_bus_init(); this brings the bus type in to line with a "_init for in-place init, _new for allocate-and-return" convention. To do this we need to rename the implementation-internal function that was using the pci_root_bus_init() name to pci_root_bus_internal_init(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20210923121153.23754-4-peter.maydell@linaro.org
This commit is contained in:
parent
43417c0c27
commit
8d4cdf01f8
4 changed files with 23 additions and 23 deletions
|
@ -300,8 +300,8 @@ static void raven_pcihost_initfn(Object *obj)
|
|||
memory_region_add_subregion_overlap(address_space_mem, PCI_IO_BASE_ADDR,
|
||||
&s->pci_io_non_contiguous, 1);
|
||||
memory_region_add_subregion(address_space_mem, 0xc0000000, &s->pci_memory);
|
||||
pci_root_bus_new_inplace(&s->pci_bus, sizeof(s->pci_bus), DEVICE(obj), NULL,
|
||||
&s->pci_memory, &s->pci_io, 0, TYPE_PCI_BUS);
|
||||
pci_root_bus_init(&s->pci_bus, sizeof(s->pci_bus), DEVICE(obj), NULL,
|
||||
&s->pci_memory, &s->pci_io, 0, TYPE_PCI_BUS);
|
||||
|
||||
/* Bus master address space */
|
||||
memory_region_init(&s->bm, obj, "bm-raven", 4 * GiB);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue