summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-20 01:32:58 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-20 01:32:58 +0000
commit7915adb56014e31e8ed8a4418060625c2e223fc0 (patch)
tree1d99680c416ab999716f7e3fb78956be8804e81f /sys/dev/ofw
parent2bc4747cc49351d47d2bdacd5c5d82bf4b44474b (diff)
Notes
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofwbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofwbus.c b/sys/dev/ofw/ofwbus.c
index 23e604a47dad..8eb5dd51833c 100644
--- a/sys/dev/ofw/ofwbus.c
+++ b/sys/dev/ofw/ofwbus.c
@@ -186,7 +186,7 @@ ofwbus_alloc_resource(device_t bus, device_t child, int type, int *rid,
struct resource_list_entry *rle;
int isdefault, passthrough;
- isdefault = (start == 0UL && end == ~0UL);
+ isdefault = RMAN_IS_DEFAULT_RANGE(start, end);
passthrough = (device_get_parent(child) != bus);
sc = device_get_softc(bus);
rle = NULL;