From d8ad7df7002963fb42d59fda6dbc42e6003fd065 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Thu, 13 Jan 2005 05:51:48 +0000 Subject: [PATCH] fixed a logic bug git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1864 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/pci_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c index 44c223a89e..fb84811cee 100644 --- a/src/devices/pci_device.c +++ b/src/devices/pci_device.c @@ -224,7 +224,7 @@ static void pci_get_rom_resource(struct device *dev, unsigned long index) /* for on board device with embedded ROM image, the ROM image is at * fixed address specified in the Config.lb, the dev->rom_address is * inited by driver_pci_onboard_ops::enable_dev() */ - if ((dev->on_mainboard) && (dev->rom_address == 0)) { + if ((dev->on_mainboard) && (dev->rom_address != 0)) { resource->base = dev->rom_address; resource->flags |= IORESOURCE_MEM | IORESOURCE_READONLY | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;