summaryrefslogtreecommitdiffstats
path: root/sys/i386/pci/pci_bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/pci/pci_bus.c')
-rw-r--r--sys/i386/pci/pci_bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index 500ca8a..892c173 100644
--- a/sys/i386/pci/pci_bus.c
+++ b/sys/i386/pci/pci_bus.c
@@ -435,8 +435,8 @@ legacy_pcib_attach(device_t dev)
bus = pcib_get_bus(dev);
if (pci_pir_probe(bus, 0)) {
pir = BUS_ADD_CHILD(device_get_parent(dev), 0, "pir", 0);
- KASSERT(pir != NULL, ("could not add pir0 device"));
- device_probe_and_attach(pir);
+ if (pir != NULL)
+ device_probe_and_attach(pir);
}
device_add_child(dev, "pci", bus);
return bus_generic_attach(dev);
OpenPOWER on IntegriCloud