summaryrefslogtreecommitdiffstats
path: root/sys/dev/tws
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/tws')
-rw-r--r--sys/dev/tws/tws.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tws/tws.c b/sys/dev/tws/tws.c
index 4c3529e..80726a7 100644
--- a/sys/dev/tws/tws.c
+++ b/sys/dev/tws/tws.c
@@ -245,8 +245,8 @@ tws_attach(device_t dev)
/* allocate MMIO register space */
sc->reg_res_id = TWS_PCI_BAR1; /* BAR1 offset */
- if ((sc->reg_res = bus_alloc_resource(dev, SYS_RES_MEMORY,
- &(sc->reg_res_id), 0, ~0, 1, RF_ACTIVE))
+ if ((sc->reg_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
+ &(sc->reg_res_id), RF_ACTIVE))
== NULL) {
tws_log(sc, ALLOC_MEMORY_RES);
goto attach_fail_1;
OpenPOWER on IntegriCloud