summaryrefslogtreecommitdiff
path: root/sys/dev/wi
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/wi
parentac6c1372f4ebb24615370e358640100e663f6746 (diff)
Notes
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 8f9d1a0e7525..632bd76ffcc5 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -1995,8 +1995,8 @@ wi_alloc(device_t dev, int rid)
if (sc->wi_bus_type != WI_BUS_PCI_NATIVE) {
sc->iobase_rid = rid;
- sc->iobase = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &sc->iobase_rid, 0, ~0, (1 << 6),
+ sc->iobase = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &sc->iobase_rid, (1 << 6),
rman_make_alignment_flags(1 << 6) | RF_ACTIVE);
if (sc->iobase == NULL) {
device_printf(dev, "No I/O space?!\n");