From eb81a5b5fc088ec8503318f12e1e320ef89cf939 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 5 Nov 2009 20:06:19 +0000 Subject: Don't try to set fixed resources. Trivial. Signed-off-by: Myles Watson Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4918 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/pci_device.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/devices/pci_device.c') 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; -- cgit v1.2.3