Fix build

This commit is contained in:
skrll 2020-12-03 08:48:06 +00:00
parent b2fc8900ac
commit eb1cc5eabf
1 changed files with 4 additions and 6 deletions

View File

@ -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. * Copyright (c) 2007 David Young. All rights reserved.
@ -61,7 +61,7 @@
*/ */
#include <sys/cdefs.h> #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/param.h>
#include <sys/bus.h> #include <sys/bus.h>
@ -245,10 +245,7 @@ wdc_extio_match(device_t parent, cfdata_t cf, void *aux)
WDC_EXTIO_DPRINTF("%s: enter\n", __func__); WDC_EXTIO_DPRINTF("%s: enter\n", __func__);
memset(&wdc, 0, sizeof(wdc)); #if 0
memset(&ch, 0, sizeof(ch));
ch.ch_atac = &wdc.sc_atac;
wdc.regs = &wdr;
wdc.datain_pio = wdc_extio_datain; wdc.datain_pio = wdc_extio_datain;
wdc.dataout_pio = wdc_extio_dataout; wdc.dataout_pio = wdc_extio_dataout;
if (cf->cf_flags != -1) { if (cf->cf_flags != -1) {
@ -257,6 +254,7 @@ wdc_extio_match(device_t parent, cfdata_t cf, void *aux)
wdc.cap |= cf->cf_flags & wdc.cap |= cf->cf_flags &
(WDC_CAPABILITY_PREATA|WDC_CAPABILITY_NO_EXTRA_RESETS); (WDC_CAPABILITY_PREATA|WDC_CAPABILITY_NO_EXTRA_RESETS);
} }
#endif
if (wdc_extio_map(ea, &wdr, &gpio, &pm) == -1) if (wdc_extio_map(ea, &wdr, &gpio, &pm) == -1)
return 0; return 0;