Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Remove some leftovers



details:   https://anonhg.NetBSD.org/src/rev/a0a2499fc9e5
branches:  trunk
changeset: 764406:a0a2499fc9e5
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Apr 20 09:57:59 2011 +0000

description:
Remove some leftovers

diffstat:

 sys/arch/sparc64/dev/ffb.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r c72539214725 -r a0a2499fc9e5 sys/arch/sparc64/dev/ffb.c
--- a/sys/arch/sparc64/dev/ffb.c        Wed Apr 20 09:32:43 2011 +0000
+++ b/sys/arch/sparc64/dev/ffb.c        Wed Apr 20 09:57:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffb.c,v 1.39 2011/04/09 19:31:15 jdc Exp $     */
+/*     $NetBSD: ffb.c,v 1.40 2011/04/20 09:57:59 martin Exp $  */
 /*     $OpenBSD: creator.c,v 1.20 2002/07/30 19:48:15 jason Exp $      */
 
 /*
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.39 2011/04/09 19:31:15 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.40 2011/04/20 09:57:59 martin Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -374,7 +374,6 @@
 void
 ffb_attach_i2c(struct ffb_softc *sc)
 {
-       struct i2cbus_attach_args iba;
 
        /* Fill in the i2c tag */
        sc->sc_i2c.ic_cookie = sc;
@@ -386,10 +385,6 @@
        sc->sc_i2c.ic_read_byte = ffb_i2c_read_byte;
        sc->sc_i2c.ic_write_byte = ffb_i2c_write_byte;
        sc->sc_i2c.ic_exec = NULL;
-
-       /* Attach I2C bus */
-       bzero(&iba, sizeof(iba));
-       iba.iba_tag = &sc->sc_i2c;
 }
 
 int



Home | Main Index | Thread Index | Old Index