Don't try to set fixed resources. Trivial.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4918 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson 2009-11-05 20:06:19 +00:00
parent 4374f428ff
commit eb81a5b5fc
1 changed files with 5 additions and 0 deletions

View File

@ -479,6 +479,11 @@ static void pci_set_resource(struct device *dev, struct resource *resource)
return;
}
/* If this resource is fixed don't worry about it. */
if (resource->flags & IORESOURCE_FIXED) {
return;
}
/* If I have already stored this resource don't worry about it. */
if (resource->flags & IORESOURCE_STORED) {
return;