aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha
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/aha
parentac6c1372f4ebb24615370e358640100e663f6746 (diff)
downloadsrc-c47476d7e6801deffc8b3c057d0fbf7d2335a0c2.tar.gz
src-c47476d7e6801deffc8b3c057d0fbf7d2335a0c2.zip
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370
Notes
Notes: svn path=/head/; revision=296137
Diffstat (limited to 'sys/dev/aha')
-rw-r--r--sys/dev/aha/aha_isa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/aha/aha_isa.c b/sys/dev/aha/aha_isa.c
index ef884e9b7e78..c4e7ba90db0b 100644
--- a/sys/dev/aha/aha_isa.c
+++ b/sys/dev/aha/aha_isa.c
@@ -120,8 +120,8 @@ aha_isa_probe(device_t dev)
return (ENXIO);
port_rid = 0;
- aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &port_rid,
- 0ul, ~0ul, AHA_NREGS, RF_ACTIVE);
+ aha->port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &port_rid,
+ AHA_NREGS, RF_ACTIVE);
if (aha->port == NULL)
return (ENXIO);
@@ -191,8 +191,8 @@ aha_isa_attach(device_t dev)
aha->dev = dev;
aha->portrid = 0;
- aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &aha->portrid,
- 0ul, ~0ul, AHA_NREGS, RF_ACTIVE);
+ aha->port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &aha->portrid, AHA_NREGS, RF_ACTIVE);
if (!aha->port) {
device_printf(dev, "Unable to allocate I/O ports\n");
goto fail;