summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros/apb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/atheros/apb.c')
-rw-r--r--sys/mips/atheros/apb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/atheros/apb.c b/sys/mips/atheros/apb.c
index c072567..8d230a7 100644
--- a/sys/mips/atheros/apb.c
+++ b/sys/mips/atheros/apb.c
@@ -170,7 +170,7 @@ apb_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;
/*
* Pass memory requests to nexus device
OpenPOWER on IntegriCloud