summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-07-12 13:12:47 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-07-12 13:12:47 +0000
commitaa4bedf98e779a918aded88f98775d37542cd5fd (patch)
tree722cf64512705c6c39c403a96ce55e22876885eb /src/devices
parent9bcad23ba15a34372eb2256916580375049f29ce (diff)
downloadcoreboot-aa4bedf98e779a918aded88f98775d37542cd5fd.tar.xz
Generic driver for pretty much all known Standard Microsystems Corporation
(SMSC) Super I/O chips. Most of the SMSC Super I/O chips seem to be similar enough (for our purposes) so that we can handle them with a unified driver. So far only the ASUS A8000 has been tested on real hardware! Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2733 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/pnp_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c
index fadab85589..f03208d3f9 100644
--- a/src/devices/pnp_device.c
+++ b/src/devices/pnp_device.c
@@ -240,6 +240,10 @@ void pnp_enable_devices(device_t base_dev, struct device_operations *ops,
/* Setup the ops and resources on the newly allocated devices */
for(i = 0; i < functions; i++) {
+ /* Skip logical devices this Super I/O doesn't have. */
+ if (info[i].function == -1)
+ continue;
+
path.u.pnp.device = info[i].function;
dev = alloc_find_dev(base_dev->bus, &path);