summaryrefslogtreecommitdiffstats
path: root/sys/mips/idt/obio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/idt/obio.c')
-rw-r--r--sys/mips/idt/obio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/idt/obio.c b/sys/mips/idt/obio.c
index c8b4fef..b95b11a 100644
--- a/sys/mips/idt/obio.c
+++ b/sys/mips/idt/obio.c
@@ -165,7 +165,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
struct rman *rm;
int isdefault, needactivate, passthrough;
- isdefault = (start == 0UL && end == ~0UL);
+ isdefault = (RMAN_IS_DEFAULT_RANGE(start, end));
needactivate = flags & RF_ACTIVE;
passthrough = (device_get_parent(child) != bus);
rle = NULL;
OpenPOWER on IntegriCloud