summaryrefslogtreecommitdiffstats
path: root/sys/arm64/cavium/thunder_pcie.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm64/cavium/thunder_pcie.c')
-rw-r--r--sys/arm64/cavium/thunder_pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/cavium/thunder_pcie.c b/sys/arm64/cavium/thunder_pcie.c
index ca2fd6f..b4ac43c 100644
--- a/sys/arm64/cavium/thunder_pcie.c
+++ b/sys/arm64/cavium/thunder_pcie.c
@@ -292,7 +292,7 @@ thunder_pcie_alloc_resource(device_t dev, device_t child, int type, int *rid,
type, rid, start, end, count, flags));
};
- if ((start == 0UL) && (end == ~0UL)) {
+ if (RMAN_IS_DEFAULT_RANGE(start, end)) {
/* Read BAR manually to get resource address and size */
pci_read_bar(child, *rid, &map, &testval, NULL);
OpenPOWER on IntegriCloud