aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
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/i386
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/i386')
-rw-r--r--sys/i386/isa/spic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/spic.c b/sys/i386/isa/spic.c
index 89ebb57e469f..2444333bfe33 100644
--- a/sys/i386/isa/spic.c
+++ b/sys/i386/isa/spic.c
@@ -234,8 +234,8 @@ spic_probe(device_t dev)
bzero(sc, sizeof(struct spic_softc));
- if (!(sc->sc_port_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &sc->sc_port_rid, 0, ~0, 5, RF_ACTIVE))) {
+ if (!(sc->sc_port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &sc->sc_port_rid, 5, RF_ACTIVE))) {
device_printf(dev,"Couldn't map I/O\n");
return ENXIO;
}