diff options
Diffstat (limited to 'sys/mips/rt305x/obio.c')
-rw-r--r-- | sys/mips/rt305x/obio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/rt305x/obio.c b/sys/mips/rt305x/obio.c index 34cec413..ff7ba03 100644 --- a/sys/mips/rt305x/obio.c +++ b/sys/mips/rt305x/obio.c @@ -287,7 +287,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 && count == 1); + isdefault = (RMAN_IS_DEFAULT_RANGE(start, end) && count == 1); needactivate = flags & RF_ACTIVE; passthrough = (device_get_parent(child) != bus); rle = NULL; |