summaryrefslogtreecommitdiff
path: root/sys/dev/ahb/ahb.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/ahb/ahb.c
parent902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff)
Notes
Diffstat (limited to 'sys/dev/ahb/ahb.c')
-rw-r--r--sys/dev/ahb/ahb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index c5c7ff7dc80c3..34b16afd37911 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -266,8 +266,7 @@ ahbattach(device_t dev)
void *ih;
rid = 0;
- io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
if (!io) {
device_printf(dev, "No I/O space?!\n");
return ENOMEM;
@@ -281,8 +280,7 @@ ahbattach(device_t dev)
goto error_exit;
rid = 0;
- irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
if (!irq) {
device_printf(dev, "Can't allocate interrupt\n");
goto error_exit;