|
@@ -319,7 +319,7 @@ int release_resource(struct resource *old)
|
|
|
EXPORT_SYMBOL(release_resource);
|
|
EXPORT_SYMBOL(release_resource);
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
- * Finds the lowest iomem resource existing within [res->start.res->end).
|
|
|
|
|
|
|
+ * Finds the lowest iomem resource existing within [res->start..res->end].
|
|
|
* The caller must specify res->start, res->end, res->flags, and optionally
|
|
* The caller must specify res->start, res->end, res->flags, and optionally
|
|
|
* desc. If found, returns 0, res is overwritten, if not found, returns -1.
|
|
* desc. If found, returns 0, res is overwritten, if not found, returns -1.
|
|
|
* This function walks the whole tree and not just first level children until
|
|
* This function walks the whole tree and not just first level children until
|
|
@@ -352,7 +352,7 @@ static int find_next_iomem_res(struct resource *res, unsigned long desc,
|
|
|
p = NULL;
|
|
p = NULL;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- if ((p->end >= start) && (p->start < end))
|
|
|
|
|
|
|
+ if ((p->end >= start) && (p->start <= end))
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|