From aa4bedf98e779a918aded88f98775d37542cd5fd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 12 Jul 2007 13:12:47 +0000 Subject: 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 Acked-by: Corey Osgood git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2733 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/pnp_device.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3