Generic driver for pretty much all known Standard Microsystems Corporation
authorUwe Hermann <uwe@hermann-uwe.de>
Thu, 12 Jul 2007 13:12:47 +0000 (13:12 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 12 Jul 2007 13:12:47 +0000 (13:12 +0000)
(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

src/devices/pnp_device.c

index fadab855894e7d33308e89e0a18669de57b0e5f0..f03208d3f96e57ba04cb884bd3ef00d4ba4ad609 100644 (file)
@@ -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);