summaryrefslogtreecommitdiffstats
path: root/sys/pci/agp_ali.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-12-20 21:12:26 +0000
committerjhb <jhb@FreeBSD.org>2005-12-20 21:12:26 +0000
commit062cc3da2d0b424c64964b187a6c11a193ff52c8 (patch)
tree423ebde323b37c09560ecbdbcf618bd674eaf7dc /sys/pci/agp_ali.c
parentfde66b5a2e0cda2db81841abf1fd0b9f1095a069 (diff)
downloadFreeBSD-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_ali.c')
-rw-r--r--sys/pci/agp_ali.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/agp_ali.c b/sys/pci/agp_ali.c
index f39476b..a619547 100644
--- a/sys/pci/agp_ali.c
+++ b/sys/pci/agp_ali.c
@@ -85,7 +85,6 @@ agp_ali_probe(device_t dev)
return (ENXIO);
desc = agp_ali_match(dev);
if (desc) {
- device_verbose(dev);
device_set_desc(dev, desc);
return BUS_PROBE_DEFAULT;
}
@@ -271,6 +270,6 @@ static driver_t agp_ali_driver = {
static devclass_t agp_devclass;
-DRIVER_MODULE(agp_ali, pci, agp_ali_driver, agp_devclass, 0, 0);
+DRIVER_MODULE(agp_ali, hostb, agp_ali_driver, agp_devclass, 0, 0);
MODULE_DEPEND(agp_ali, agp, 1, 1, 1);
MODULE_DEPEND(agp_ali, pci, 1, 1, 1);
OpenPOWER on IntegriCloud