summaryrefslogtreecommitdiff
path: root/sys/dev/amd/amd.c
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
committerNate Lawson <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
commit5f96beb9e08be2b08309a6b98967246b64272ade (patch)
treea1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/amd/amd.c
parent902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff)
Notes
Diffstat (limited to 'sys/dev/amd/amd.c')
-rw-r--r--sys/dev/amd/amd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c
index 22d52ca41625..101c9f13c60e 100644
--- a/sys/dev/amd/amd.c
+++ b/sys/dev/amd/amd.c
@@ -2286,8 +2286,7 @@ amd_init(device_t dev)
u_int bval;
rid = PCI_BASE_ADDR0;
- iores = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1,
- RF_ACTIVE);
+ iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
if (iores == NULL) {
if (bootverbose)
printf("amd_init: bus_alloc_resource failure!\n");
@@ -2432,8 +2431,8 @@ amd_attach(device_t dev)
/* After setting up the adapter, map our interrupt */
rid = 0;
- irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,
- RF_SHAREABLE | RF_ACTIVE);
+ irqres = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
+ RF_SHAREABLE | RF_ACTIVE);
if (irqres == NULL ||
bus_setup_intr(dev, irqres, INTR_TYPE_CAM | INTR_ENTROPY,
amd_intr, amd, &ih)) {