summaryrefslogtreecommitdiffstats
path: root/sys/pci/agp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/agp.c')
-rw-r--r--sys/pci/agp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 6a01e20..fc4fd1f 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -230,8 +230,8 @@ agp_generic_attach(device_t dev)
* Find and map the aperture.
*/
rid = AGP_APBASE;
- sc->as_aperture = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ sc->as_aperture = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
+ RF_ACTIVE);
if (!sc->as_aperture)
return ENOMEM;
OpenPOWER on IntegriCloud