diff options
author | jhb <jhb@FreeBSD.org> | 2003-09-03 15:24:31 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-09-03 15:24:31 +0000 |
commit | d5c4ef5547dcaf9a4533862700c38b7ea4313cff (patch) | |
tree | 7fa9c7fc15cf671e051e174489b22a7d01d90c91 /sys/dev/pci | |
parent | c9c6c3f8e32fc41f13496ac91729b9df76a46298 (diff) | |
download | FreeBSD-src-d5c4ef5547dcaf9a4533862700c38b7ea4313cff.zip FreeBSD-src-d5c4ef5547dcaf9a4533862700c38b7ea4313cff.tar.gz |
Replace another instance of PCIR_MAPS with PCIR_BAR(x).
Reminded by: dfr
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index c4a1147..5af67a3 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1344,7 +1344,7 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid, break; case SYS_RES_IOPORT: case SYS_RES_MEMORY: - if (*rid < PCIR_MAPS + 4*cfg->nummaps) { + if (*rid < PCIR_BAR(cfg->nummaps)) { /* * Enable the I/O mode. We should * also be allocating resources |