Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Do initialise i2c_attach_args new members, for i...



details:   https://anonhg.NetBSD.org/src/rev/b4e413532d1c
branches:  trunk
changeset: 752580:b4e413532d1c
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Mar 01 17:35:21 2010 +0000

description:
Do initialise i2c_attach_args new members, for indirect configuration
too.

diffstat:

 sys/dev/i2c/i2c.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1a835f720e3f -r b4e413532d1c sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Mon Mar 01 17:22:20 2010 +0000
+++ b/sys/dev/i2c/i2c.c Mon Mar 01 17:35:21 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i2c.c,v 1.24 2010/02/28 11:34:42 martin Exp $  */
+/*     $NetBSD: i2c.c,v 1.25 2010/03/01 17:35:21 njoly Exp $   */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.24 2010/02/28 11:34:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.25 2010/03/01 17:35:21 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -108,6 +108,10 @@
        ia.ia_size = cf->cf_loc[IICCF_SIZE];
        ia.ia_type = sc->sc_type;
 
+       ia.ia_name = NULL;
+       ia.ia_ncompat = 0;
+       ia.ia_compat = NULL;
+
        if (config_match(parent, cf, &ia) > 0)
                config_attach(parent, cf, &ia, iic_print);
 



Home | Main Index | Thread Index | Old Index