OSDN Git Service

pci: Rename pci_root_bus_new_inplace() to pci_root_bus_init()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Sep 2021 12:11:50 +0000 (13:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Sep 2021 12:42:10 +0000 (13:42 +0100)
commit8d4cdf01f89fd834b952df2dd08f55e897a72ea8
tree518552fd27b5e7f1cab0a49b9903cfcf74b03787
parent43417c0c27fd0851707a1f3bf50244d24aeeaf82
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
hw/pci-host/raven.c
hw/pci-host/versatile.c
hw/pci/pci.c
include/hw/pci/pci.h