[LinuxBIOS] r2733 - trunk/LinuxBIOSv2/src/devices

svn at openbios.org svn at openbios.org
Thu Jul 12 15:12:47 CEST 2007


Author: uwe
Date: 2007-07-12 15:12:47 +0200 (Thu, 12 Jul 2007)
New Revision: 2733

Modified:
   trunk/LinuxBIOSv2/src/devices/pnp_device.c
Log:
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 at hermann-uwe.de>
Acked-by: Corey Osgood <corey.osgood at gmail.com>



Modified: trunk/LinuxBIOSv2/src/devices/pnp_device.c
===================================================================
--- trunk/LinuxBIOSv2/src/devices/pnp_device.c	2007-07-04 17:51:49 UTC (rev 2732)
+++ trunk/LinuxBIOSv2/src/devices/pnp_device.c	2007-07-12 13:12:47 UTC (rev 2733)
@@ -240,6 +240,10 @@
 	
 	/* 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);
 		





More information about the coreboot mailing list