diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-11-05 20:06:19 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-11-05 20:06:19 +0000 |
commit | eb81a5b5fc088ec8503318f12e1e320ef89cf939 (patch) | |
tree | 6387eb552a7ff5692ea2b6b38deb493586437fe1 /src/devices | |
parent | 4374f428fff5c11cc26f08e1a0696e6646127998 (diff) |
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
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/pci_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c index 1788044fe7..2360028756 100644 --- a/src/devices/pci_device.c +++ b/src/devices/pci_device.c @@ -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; |