summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp/agp_i810.c
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
commit92f340b6e7dc02801983812c792c7d3964d31ef7 (patch)
tree07e19b18864f030899e170c445daf41bd547c6d1 /sys/dev/agp/agp_i810.c
parenta9d460420e5a6206b25b2ffac4bcaa0d37cc837a (diff)
downloadFreeBSD-src-92f340b6e7dc02801983812c792c7d3964d31ef7.zip
FreeBSD-src-92f340b6e7dc02801983812c792c7d3964d31ef7.tar.gz
This isn't functionally identical. In some cases a hint to disable
unit 0 would in fact disable all units. This reverts r241856 Approved by: cperciva (implicit)
Diffstat (limited to 'sys/dev/agp/agp_i810.c')
-rw-r--r--sys/dev/agp/agp_i810.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index be3448b..39d6cba 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -860,6 +860,8 @@ agp_i810_probe(device_t dev)
const struct agp_i810_match *match;
int err;
+ if (resource_disabled("agp", device_get_unit(dev)))
+ return (ENXIO);
match = agp_i810_match(dev);
if (match == NULL)
return (ENXIO);
OpenPOWER on IntegriCloud