diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
commit | 9da1c36d0a8d774c39703ec25190536771eaee70 (patch) | |
tree | bc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/si/si_isa.c | |
parent | 8db64542512568b735293ebaad1c652c899a02f1 (diff) | |
download | FreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.zip FreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.tar.gz |
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
Diffstat (limited to 'sys/dev/si/si_isa.c')
-rw-r--r-- | sys/dev/si/si_isa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/si/si_isa.c b/sys/dev/si/si_isa.c index f6d5ab6..9c0b81b 100644 --- a/sys/dev/si/si_isa.c +++ b/sys/dev/si/si_isa.c @@ -58,9 +58,9 @@ si_isa_probe(device_t dev) unit = device_get_unit(dev); sc->sc_mem_rid = 0; - sc->sc_mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, - &sc->sc_mem_rid, - 0, ~0, SIPROBEALLOC, RF_ACTIVE); + sc->sc_mem_res = bus_alloc_resource_anywhere(dev, SYS_RES_MEMORY, + &sc->sc_mem_rid, + SIPROBEALLOC, RF_ACTIVE); if (!sc->sc_mem_res) { device_printf(dev, "cannot allocate memory resource\n"); return ENXIO; |