aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
commit43cd61606b6bfae52bb09856277751103bfa28fd (patch)
treeb91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/isa/isa_common.c
parent277db305768ad6765ed735ced43360000c282ed6 (diff)
downloadsrc-43cd61606b6bfae52bb09856277751103bfa28fd.tar.gz
src-43cd61606b6bfae52bb09856277751103bfa28fd.zip
Replace several bus_alloc_resource() calls using default arguments with bus_alloc_resource_any()
Since these calls only use default arguments, bus_alloc_resource_any() is the right call. Differential Revision: https://reviews.freebsd.org/D5306
Notes
Notes: svn path=/head/; revision=295790
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 7c114594f56f..bb03ea0dd651 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -150,8 +150,8 @@ isa_find_memory(device_t child, struct isa_config *config,
start += MAX(align, 1)) {
bus_set_resource(child, SYS_RES_MEMORY, i,
start, size);
- res[i] = bus_alloc_resource(child,
- SYS_RES_MEMORY, &i, 0, ~0, 1,
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_MEMORY, &i,
rman_make_alignment_flags(align) /* !RF_ACTIVE */);
if (res[i]) {
result->ic_mem[i].ir_start = start;
@@ -224,8 +224,8 @@ isa_find_port(device_t child, struct isa_config *config,
start += align) {
bus_set_resource(child, SYS_RES_IOPORT, i,
start, size);
- res[i] = bus_alloc_resource(child,
- SYS_RES_IOPORT, &i, 0, ~0, 1,
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_IOPORT, &i,
rman_make_alignment_flags(align) /* !RF_ACTIVE */);
if (res[i]) {
result->ic_port[i].ir_start = start;