aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/hostb_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/hostb_pci.c')
-rw-r--r--sys/dev/pci/hostb_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/hostb_pci.c b/sys/dev/pci/hostb_pci.c
index 3f6abf31b236..e6c10418a684 100644
--- a/sys/dev/pci/hostb_pci.c
+++ b/sys/dev/pci/hostb_pci.c
@@ -69,15 +69,15 @@ static int
pci_hostb_attach(device_t dev)
{
- bus_generic_probe(dev);
+ bus_identify_children(dev);
/*
* If AGP capabilities are present on this device, then create
* an AGP child.
*/
if (pci_find_cap(dev, PCIY_AGP, NULL) == 0)
- device_add_child(dev, "agp", -1);
- bus_generic_attach(dev);
+ device_add_child(dev, "agp", DEVICE_UNIT_ANY);
+ bus_attach_children(dev);
return (0);
}