Add an error message if there is a zero-sized fixed resource. Fix the existing
example of one. Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4557 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -556,8 +556,12 @@ static void constrain_resources(struct device *dev, struct constraints* limits)
|
||||
/* Constrain limits based on the fixed resources of this device. */
|
||||
for (i = 0; i < dev->resources; i++) {
|
||||
res = &dev->resource[i];
|
||||
if (!res->size)
|
||||
if (!res->size) {
|
||||
/* It makes no sense to have 0-sized, fixed resources.*/
|
||||
printk_err("skipping %s@%lx fixed resource, size=0!\n",
|
||||
dev_path(dev), res->index);
|
||||
continue;
|
||||
}
|
||||
if (!(res->flags & IORESOURCE_FIXED))
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user