Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/pci As Jonathan Kollasch points out, elansc_at...



details:   https://anonhg.NetBSD.org/src/rev/220aa2b163b8
branches:  trunk
changeset: 747499:220aa2b163b8
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Sep 17 20:21:54 2009 +0000

description:
As Jonathan Kollasch points out, elansc_attach() does not actually
use gba after filling it out.  Delete it.

diffstat:

 sys/arch/i386/pci/elan520.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r 561c0914333f -r 220aa2b163b8 sys/arch/i386/pci/elan520.c
--- a/sys/arch/i386/pci/elan520.c       Thu Sep 17 18:48:47 2009 +0000
+++ b/sys/arch/i386/pci/elan520.c       Thu Sep 17 20:21:54 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elan520.c,v 1.42 2009/04/29 23:50:53 dyoung Exp $      */
+/*     $NetBSD: elan520.c,v 1.43 2009/09/17 20:21:54 dyoung Exp $      */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.42 2009/04/29 23:50:53 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elan520.c,v 1.43 2009/09/17 20:21:54 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1262,7 +1262,6 @@
        uint16_t rev;
        uint8_t cpuctl, picicr, ressta;
 #if NGPIO > 0
-       struct gpiobus_attach_args gba;
        int pin, reg, shift;
        uint16_t data;
 #endif
@@ -1387,10 +1386,6 @@
        sc->sc_gpio_gc.gp_pin_write = elansc_gpio_pin_write;
        sc->sc_gpio_gc.gp_pin_ctl = elansc_gpio_pin_ctl;
 
-       gba.gba_gc = &sc->sc_gpio_gc;
-       gba.gba_pins = sc->sc_gpio_pins;
-       gba.gba_npins = ELANSC_PIO_NPINS;
-
 #endif /* NGPIO */
 
        elansc_rescan(sc->sc_dev, "elanparbus", NULL);



Home | Main Index | Thread Index | Old Index