summaryrefslogtreecommitdiff
path: root/sys/dev/vx/if_vx_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vx/if_vx_pci.c')
-rw-r--r--sys/dev/vx/if_vx_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 87d525509e84..49c23432d731 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -129,7 +129,7 @@ vx_pci_attach(
sc = device_get_softc(dev);
- rid = PCIR_MAPS;
+ rid = PCIR_BAR(0);
sc->vx_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
0, ~0, 1, RF_ACTIVE);