aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/bus/pci.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-10-25 14:40:28 +0100
committerMichael Brown <mcb30@ipxe.org>2024-10-25 14:40:28 +0100
commitcc45ca372c9e297c961ee40911753be89f38170a (patch)
tree35b89c6015993a1181024798936b5c7eb8b4213a /src/drivers/bus/pci.c
parentabfa7c3ab1323967c38b11d4732b2d27ecf2f094 (diff)
downloadipxe-cc45ca372c9e297c961ee40911753be89f38170a.tar.gz
[pci] Drag in PCI settings mechanism only when PCI support is present
Allow for the existence of platforms with no PCI bus by including the PCI settings mechanism only if PCI bus support is included. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/bus/pci.c')
-rw-r--r--src/drivers/bus/pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 05c9a5c26..60740ac18 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -438,3 +438,9 @@ struct root_device pci_root_device __root_device = {
.dev = { .name = "PCI" },
.driver = &pci_root_driver,
};
+
+/* Drag in objects via pcibus_probe() */
+REQUIRING_SYMBOL ( pcibus_probe );
+
+/* Drag in PCI configuration */
+REQUIRE_OBJECT ( config_pci );