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_nvidia.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_nvidia.c')
-rw-r--r-- | sys/pci/agp_nvidia.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/agp_nvidia.c b/sys/pci/agp_nvidia.c index 5e26622..8e4f35f 100644 --- a/sys/pci/agp_nvidia.c +++ b/sys/pci/agp_nvidia.c @@ -121,7 +121,6 @@ agp_nvidia_probe (device_t dev) return (ENXIO); desc = agp_nvidia_match(dev); if (desc) { - device_verbose(dev); device_set_desc(dev, desc); return (BUS_PROBE_DEFAULT); } @@ -460,6 +459,6 @@ static driver_t agp_nvidia_driver = { static devclass_t agp_devclass; -DRIVER_MODULE(agp_nvidia, pci, agp_nvidia_driver, agp_devclass, 0, 0); +DRIVER_MODULE(agp_nvidia, hostb, agp_nvidia_driver, agp_devclass, 0, 0); MODULE_DEPEND(agp_nvidia, agp, 1, 1, 1); MODULE_DEPEND(agp_nvidia, pci, 1, 1, 1); |