summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/aic')
-rw-r--r--sys/dev/aic/aic_isa.c4
-rw-r--r--sys/dev/aic/aic_pccard.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/aic/aic_isa.c b/sys/dev/aic/aic_isa.c
index 1671802..7e8c239 100644
--- a/sys/dev/aic/aic_isa.c
+++ b/sys/dev/aic/aic_isa.c
@@ -75,8 +75,8 @@ aic_isa_alloc_resources(device_t dev)
sc->sc_port = sc->sc_irq = sc->sc_drq = NULL;
rid = 0;
- sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0ul, ~0ul, AIC_ISA_PORTSIZE, RF_ACTIVE);
+ sc->sc_port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ AIC_ISA_PORTSIZE, RF_ACTIVE);
if (!sc->sc_port) {
device_printf(dev, "I/O port allocation failed\n");
return (ENOMEM);
diff --git a/sys/dev/aic/aic_pccard.c b/sys/dev/aic/aic_pccard.c
index ef6dd9e..c16c90e 100644
--- a/sys/dev/aic/aic_pccard.c
+++ b/sys/dev/aic/aic_pccard.c
@@ -77,8 +77,8 @@ aic_pccard_alloc_resources(device_t dev)
sc->sc_port = sc->sc_irq = NULL;
rid = 0;
- sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0ul, ~0ul, AIC_PCCARD_PORTSIZE, RF_ACTIVE);
+ sc->sc_port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ AIC_PCCARD_PORTSIZE, RF_ACTIVE);
if (!sc->sc_port)
return (ENOMEM);
OpenPOWER on IntegriCloud