Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Initialize i2cbus_attach_args be...



details:   https://anonhg.NetBSD.org/src/rev/b741230c5196
branches:  trunk
changeset: 765986:b741230c5196
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Jun 12 07:19:49 2011 +0000

description:
Initialize i2cbus_attach_args before call config_found().  It has other member.

diffstat:

 sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r eadf753138d6 -r b741230c5196 sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c
--- a/sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c   Sun Jun 12 07:07:17 2011 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/gpiic_opb.c   Sun Jun 12 07:19:49 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gpiic_opb.c,v 1.6 2008/07/12 02:04:07 tsutsui Exp $    */
+/*     $NetBSD: gpiic_opb.c,v 1.7 2011/06/12 07:19:49 kiyohara Exp $   */
 
 /*
  * Copyright 2002, 2003 Wasabi Systems, Inc.
@@ -135,6 +135,7 @@
        bus_space_write_1(sc->sc_bust, sc->sc_bush, IIC_DIRECTCNTL,
            IIC_DIRECTCNTL_SCC | IIC_DIRECTCNTL_SDAC);
 
+       memset(&iba, 0, sizeof(iba));
        iba.iba_tag = &sc->sc_i2c;
        (void) config_found_ia(&sc->sc_dev, "i2cbus", &iba, iicbus_print);
 }



Home | Main Index | Thread Index | Old Index