Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/adm5120/dev Fix build



details:   https://anonhg.NetBSD.org/src/rev/38459ac322da
branches:  trunk
changeset: 978775:38459ac322da
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Dec 03 08:48:06 2020 +0000

description:
Fix build

diffstat:

 sys/arch/mips/adm5120/dev/wdc_extio.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 47c2ecb52174 -r 38459ac322da sys/arch/mips/adm5120/dev/wdc_extio.c
--- a/sys/arch/mips/adm5120/dev/wdc_extio.c     Thu Dec 03 08:25:57 2020 +0000
+++ b/sys/arch/mips/adm5120/dev/wdc_extio.c     Thu Dec 03 08:48:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_extio.c,v 1.11 2019/09/09 22:01:23 jdolecek Exp $ */
+/*     $NetBSD: wdc_extio.c,v 1.12 2020/12/03 08:48:06 skrll Exp $ */
 
 /*-
  * Copyright (c) 2007 David Young.  All rights reserved.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_extio.c,v 1.11 2019/09/09 22:01:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_extio.c,v 1.12 2020/12/03 08:48:06 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -245,10 +245,7 @@
 
        WDC_EXTIO_DPRINTF("%s: enter\n", __func__);
 
-       memset(&wdc, 0, sizeof(wdc));
-       memset(&ch, 0, sizeof(ch));
-       ch.ch_atac = &wdc.sc_atac;
-       wdc.regs = &wdr;
+#if 0
        wdc.datain_pio = wdc_extio_datain;
        wdc.dataout_pio = wdc_extio_dataout;
        if (cf->cf_flags != -1) {
@@ -257,6 +254,7 @@
                wdc.cap |= cf->cf_flags &
                    (WDC_CAPABILITY_PREATA|WDC_CAPABILITY_NO_EXTRA_RESETS);
        }
+#endif
 
        if (wdc_extio_map(ea, &wdr, &gpio, &pm) == -1)
                return 0;



Home | Main Index | Thread Index | Old Index