summaryrefslogtreecommitdiff
path: root/sys/dev/wl/if_wl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/wl/if_wl.c')
-rw-r--r--sys/dev/wl/if_wl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index b3b92d6c2798..7146a25755d6 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -604,8 +604,8 @@ wl_allocate_resources(device_t device)
struct wl_softc *sc = device_get_softc(device);
int ports = 16; /* Number of ports */
- sc->res_ioport = bus_alloc_resource(device, SYS_RES_IOPORT,
- &sc->rid_ioport, 0ul, ~0ul, ports, RF_ACTIVE);
+ sc->res_ioport = bus_alloc_resource_anywhere(device, SYS_RES_IOPORT,
+ &sc->rid_ioport, ports, RF_ACTIVE);
if (sc->res_ioport == NULL)
goto errexit;