diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-05-03 14:49:10 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-05-03 14:49:10 +0000 |
| commit | 4f9e7c8b0027e72446d25aa14a91c4c287c34192 (patch) | |
| tree | 62c0c23b40ffd87cbd85b8562ae98b8aafed8f60 /sys | |
| parent | 06bb56f43c30f9759a004f72400f9d3216975afa (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/i386/i386/mptable_pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/i386/i386/mptable_pci.c b/sys/i386/i386/mptable_pci.c index 5aa0b6943369..660ced6988e1 100644 --- a/sys/i386/i386/mptable_pci.c +++ b/sys/i386/i386/mptable_pci.c @@ -64,10 +64,18 @@ mptable_hostb_probe(device_t dev) return (0); } +static int +mptable_hostb_attach(device_t dev) +{ + + device_add_child(dev, "pci", pcib_get_bus(dev)); + return (bus_generic_attach(dev)); +} + static device_method_t mptable_hostb_methods[] = { /* Device interface */ DEVMETHOD(device_probe, mptable_hostb_probe), - DEVMETHOD(device_attach, legacy_pcib_attach), + DEVMETHOD(device_attach, mptable_hostb_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), DEVMETHOD(device_suspend, bus_generic_suspend), DEVMETHOD(device_resume, bus_generic_resume), |
