diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-20 21:12:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-20 21:12:26 +0000 |
commit | 062cc3da2d0b424c64964b187a6c11a193ff52c8 (patch) | |
tree | 423ebde323b37c09560ecbdbcf618bd674eaf7dc /sys/pci/agp_amd.c | |
parent | fde66b5a2e0cda2db81841abf1fd0b9f1095a069 (diff) | |
download | FreeBSD-src-062cc3da2d0b424c64964b187a6c11a193ff52c8.zip FreeBSD-src-062cc3da2d0b424c64964b187a6c11a193ff52c8.tar.gz |
Change the various AGP drivers that attach to the Host-PCI bridge device to
attach to the hostb driver instead. This means that agp can now be loaded
at runtime (in theory at least). Also, the drivers no longer have to
explicity call device_verbose() to cancel out any earlier calls to
device_quiet() by the hostb(4) driver (this shows a limitation in new-bus,
drivers really shouldn't be doing device_quiet() until they know they are
going to drive that device, i.e. in attach).
Diffstat (limited to 'sys/pci/agp_amd.c')
-rw-r--r-- | sys/pci/agp_amd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/agp_amd.c b/sys/pci/agp_amd.c index bb1d20e..3c9159d 100644 --- a/sys/pci/agp_amd.c +++ b/sys/pci/agp_amd.c @@ -207,7 +207,6 @@ agp_amd_probe(device_t dev) return (ENXIO); desc = agp_amd_match(dev); if (desc) { - device_verbose(dev); device_set_desc(dev, desc); return BUS_PROBE_DEFAULT; } @@ -415,6 +414,6 @@ static driver_t agp_amd_driver = { static devclass_t agp_devclass; -DRIVER_MODULE(agp_amd, pci, agp_amd_driver, agp_devclass, 0, 0); +DRIVER_MODULE(agp_amd, hostb, agp_amd_driver, agp_devclass, 0, 0); MODULE_DEPEND(agp_amd, agp, 1, 1, 1); MODULE_DEPEND(agp_amd, pci, 1, 1, 1); |