Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ingenic zero out struct i2cbus_attach_args bef...
details: https://anonhg.NetBSD.org/src/rev/a1a0839f15ba
branches: trunk
changeset: 342289:a1a0839f15ba
user: macallan <macallan%NetBSD.org@localhost>
date: Mon Dec 14 23:21:23 2015 +0000
description:
zero out struct i2cbus_attach_args before messing with it
diffstat:
sys/arch/mips/ingenic/jziic.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r a0d613f25d59 -r a1a0839f15ba sys/arch/mips/ingenic/jziic.c
--- a/sys/arch/mips/ingenic/jziic.c Mon Dec 14 23:06:21 2015 +0000
+++ b/sys/arch/mips/ingenic/jziic.c Mon Dec 14 23:21:23 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jziic.c,v 1.2 2015/04/21 06:12:41 macallan Exp $ */
+/* $NetBSD: jziic.c,v 1.3 2015/12/14 23:21:23 macallan Exp $ */
/*-
* Copyright (c) 2015 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: jziic.c,v 1.2 2015/04/21 06:12:41 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: jziic.c,v 1.3 2015/12/14 23:21:23 macallan Exp $");
/*
* a preliminary driver for JZ4780's on-chip SMBus controllers
@@ -185,6 +185,7 @@
sc->sc_i2c.ic_write_byte = NULL;
sc->sc_i2c.ic_exec = jziic_i2c_exec;
+ 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