diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-05-10 16:05:16 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-05-10 16:05:16 +0000 |
commit | 9f0d0f9669a2421398700292dbb377eff125c4fe (patch) | |
tree | 06fbda9fba79c00cda2e4774f00cef981211ab33 /src/devices/pnp_device.c | |
parent | 75337f7500cbddc1bea2927573c8eadaa4455d7f (diff) |
rename walk_static_devices
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1552 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/pnp_device.c')
-rw-r--r-- | src/devices/pnp_device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c index 9bee8e471f..5f4ede1ec4 100644 --- a/src/devices/pnp_device.c +++ b/src/devices/pnp_device.c @@ -10,7 +10,6 @@ #include <device/device.h> #include <device/pnp.h> - /* PNP fundamental operations */ void pnp_write_config(device_t dev, uint8_t reg, uint8_t value) @@ -53,7 +52,6 @@ void pnp_set_irq(device_t dev, unsigned index, unsigned irq) pnp_write_config(dev, index, irq); } - void pnp_set_drq(device_t dev, unsigned drq, unsigned index) { /* Index == 0x74 */ @@ -76,7 +74,6 @@ static void pnp_set_resource(device_t dev, struct resource *resource) } /* Now store the resource */ - resource->flags |= IORESOURCE_STORED; if (resource->flags & IORESOURCE_IO) { pnp_set_iobase(dev, resource->index, resource->base); } else if (resource->flags & IORESOURCE_DRQ) { @@ -84,12 +81,11 @@ static void pnp_set_resource(device_t dev, struct resource *resource) } else if (resource->flags & IORESOURCE_IRQ) { pnp_set_irq(dev, resource->index, resource->base); } else { - /* Don't let me think I stored the resource */ - resource->flags &= ~IORESOURCE_STORED; printk_err("ERROR: %s %02x unknown resource type\n", dev_path(dev), resource->index); return; } + resource->flags |= IORESOURCE_STORED; printk_debug("%s %02x <- [0x%08lx - 0x%08lx] %s\n", dev_path(dev), resource->index, resource->base, |