summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2024-03-26 11:07:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-04-02 10:38:57 +0200
commitfd3be9d95f342a3d056a08a8e69fe81fd2a35948 (patch)
treec68f8eb66011d101bd2d4d09011065afc43e6fb4 /include
parent990deb7c1f0ad683c54c9097cabb7058f01831ef (diff)
downloadbarebox-fd3be9d95f342a3d056a08a8e69fe81fd2a35948.tar.gz
barebox-fd3be9d95f342a3d056a08a8e69fe81fd2a35948.tar.xz
pci: add pci_controller_init()
Upcoming patches will add a list to struct pci_controller. To make sure we have a single point to initialize the list introduce a pci_controller_init() and call it from all drivers which use register_pci_controller(). Make sure host->parent is set correctly before calling register_pci_controller() as that will be needed for device tree parsing later. Link: https://lore.barebox.org/20240326100746.471532-8-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 4d4ab818f8..2fea9ba6c7 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -278,6 +278,7 @@ int pci_register_device(struct pci_dev *pdev);
extern struct list_head pci_root_buses; /* list of all known PCI buses */
+extern void pci_controller_init(struct pci_controller *hose);
extern void register_pci_controller(struct pci_controller *hose);
int pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn,