aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snc/if_snc_cbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/snc/if_snc_cbus.c')
-rw-r--r--sys/dev/snc/if_snc_cbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/snc/if_snc_cbus.c b/sys/dev/snc/if_snc_cbus.c
index eea025034e61..484b677967a3 100644
--- a/sys/dev/snc/if_snc_cbus.c
+++ b/sys/dev/snc/if_snc_cbus.c
@@ -147,9 +147,9 @@ snc_isa_probe(device_t dev)
for (port = 0x0888; port <= 0x3888; port += 0x1000) {
bus_set_resource(dev, SYS_RES_IOPORT, rid,
port, SNEC_NREGS);
- res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0ul, ~0ul, SNEC_NREGS,
- 0 /* !RF_ACTIVE */);
+ res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &rid, SNEC_NREGS,
+ 0 /* !RF_ACTIVE */);
if (res) break;
}