Module Name:    src
Committed By:   pgoyette
Date:           Tue Nov  3 12:51:56 UTC 2009

Modified Files:
        src/sys/dev/pci: piixpm.c

Log Message:
Set iba_type properly.  The only thing that ever looks at this is the
'options I2C_SCAN' code in dev/i2c/i2c.c which is disabled by default.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/pci/piixpm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/piixpm.c
diff -u src/sys/dev/pci/piixpm.c:1.29 src/sys/dev/pci/piixpm.c:1.30
--- src/sys/dev/pci/piixpm.c:1.29	Wed Mar 18 16:00:19 2009
+++ src/sys/dev/pci/piixpm.c	Tue Nov  3 12:51:56 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpm.c,v 1.29 2009/03/18 16:00:19 cegger Exp $ */
+/* $NetBSD: piixpm.c,v 1.30 2009/11/03 12:51:56 pgoyette Exp $ */
 /*	$OpenBSD: piixpm.c,v 1.20 2006/02/27 08:25:02 grange Exp $	*/
 
 /*
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.29 2009/03/18 16:00:19 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.30 2009/11/03 12:51:56 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -233,6 +233,7 @@
 	sc->sc_i2c_tag.ic_exec = piixpm_i2c_exec;
 
 	memset(&iba, 0, sizeof(iba));
+	iba.iba_type = I2C_TYPE_SMBUS;
 	iba.iba_tag = &sc->sc_i2c_tag;
 	config_found_ia(self, "i2cbus", &iba, iicbus_print);
 

Reply via email to