aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cm
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
commitc47476d7e6801deffc8b3c057d0fbf7d2335a0c2 (patch)
treebc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/cm
parentac6c1372f4ebb24615370e358640100e663f6746 (diff)
Notes
Diffstat (limited to 'sys/dev/cm')
-rw-r--r--sys/dev/cm/if_cm_isa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/cm/if_cm_isa.c b/sys/dev/cm/if_cm_isa.c
index adcd31fb45fa..09083743ea1c 100644
--- a/sys/dev/cm/if_cm_isa.c
+++ b/sys/dev/cm/if_cm_isa.c
@@ -63,8 +63,8 @@ cm_isa_probe(dev)
int rid;
rid = 0;
- sc->port_res = bus_alloc_resource(
- dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, CM_IO_PORTS, RF_ACTIVE);
+ sc->port_res = bus_alloc_resource_anywhere(
+ dev, SYS_RES_IOPORT, &rid, CM_IO_PORTS, RF_ACTIVE);
if (sc->port_res == NULL)
return (ENOENT);
@@ -74,8 +74,8 @@ cm_isa_probe(dev)
}
rid = 0;
- sc->mem_res = bus_alloc_resource(
- dev, SYS_RES_MEMORY, &rid, 0ul, ~0ul, CM_MEM_SIZE, RF_ACTIVE);
+ sc->mem_res = bus_alloc_resource_anywhere(
+ dev, SYS_RES_MEMORY, &rid, CM_MEM_SIZE, RF_ACTIVE);
if (sc->mem_res == NULL) {
cm_release_resources(dev);
return (ENOENT);