aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/cavium/thunder_pcie_fdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm64/cavium/thunder_pcie_fdt.c')
-rw-r--r--sys/arm64/cavium/thunder_pcie_fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/cavium/thunder_pcie_fdt.c b/sys/arm64/cavium/thunder_pcie_fdt.c
index f1624f615484..09b56602d74a 100644
--- a/sys/arm64/cavium/thunder_pcie_fdt.c
+++ b/sys/arm64/cavium/thunder_pcie_fdt.c
@@ -283,7 +283,7 @@ thunder_pcie_ofw_bus_alloc_res(device_t bus, device_t child, int type, int *rid,
sc = device_get_softc(bus);
- if ((start == 0UL) && (end == ~0UL)) {
+ if (RMAN_IS_DEFAULT_RANGE(start, end)) {
if ((di = device_get_ivars(child)) == NULL)
return (NULL);
if (type == SYS_RES_IOPORT)