diff options
author | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 21:12:26 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 21:12:26 +0000 |
commit | c626f1fe9a7d794d4a0806eafbc08a44ca060747 (patch) | |
tree | 423ebde323b37c09560ecbdbcf618bd674eaf7dc /sys/dev/agp/agp_sis.c | |
parent | 5b2119223eb7dafa4f314e0773582a32877d7929 (diff) | |
download | src-c626f1fe9a7d794d4a0806eafbc08a44ca060747.tar.gz src-c626f1fe9a7d794d4a0806eafbc08a44ca060747.zip |
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).
Notes
Notes:
svn path=/head/; revision=153572
Diffstat (limited to 'sys/dev/agp/agp_sis.c')
-rw-r--r-- | sys/dev/agp/agp_sis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/agp/agp_sis.c b/sys/dev/agp/agp_sis.c index 0f3b31a41da1..867cce3f9bb3 100644 --- a/sys/dev/agp/agp_sis.c +++ b/sys/dev/agp/agp_sis.c @@ -119,7 +119,6 @@ agp_sis_probe(device_t dev) return (ENXIO); desc = agp_sis_match(dev); if (desc) { - device_verbose(dev); device_set_desc(dev, desc); return BUS_PROBE_DEFAULT; } @@ -293,6 +292,6 @@ static driver_t agp_sis_driver = { static devclass_t agp_devclass; -DRIVER_MODULE(agp_sis, pci, agp_sis_driver, agp_devclass, 0, 0); +DRIVER_MODULE(agp_sis, hostb, agp_sis_driver, agp_devclass, 0, 0); MODULE_DEPEND(agp_sis, agp, 1, 1, 1); MODULE_DEPEND(agp_sis, pci, 1, 1, 1); |