summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/zs.c
diff options
context:
space:
mode:
authorbriggs <briggs@cvs.openbsd.org>1997-01-24 01:35:55 +0000
committerbriggs <briggs@cvs.openbsd.org>1997-01-24 01:35:55 +0000
commit2cf4fbaafa89ff9455907432816daebe394b533b (patch)
tree14fe32451db6302b379b04d7ca3df0c07d26dce7 /sys/arch/mac68k/dev/zs.c
parent2ebc04f559b55bc6705d62e51a00406bee8ef115 (diff)
Sync w/ NETBSD_CURRENT_971122.
Diffstat (limited to 'sys/arch/mac68k/dev/zs.c')
-rw-r--r--sys/arch/mac68k/dev/zs.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/arch/mac68k/dev/zs.c b/sys/arch/mac68k/dev/zs.c
index 281d31a0aa0..38351e14111 100644
--- a/sys/arch/mac68k/dev/zs.c
+++ b/sys/arch/mac68k/dev/zs.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: zs.c,v 1.6 1996/10/28 14:46:26 briggs Exp $ */
-/* $NetBSD: zs.c,v 1.10 1996/10/13 03:21:31 christos Exp $ */
+/* $OpenBSD: zs.c,v 1.7 1997/01/24 01:35:39 briggs Exp $ */
+/* $NetBSD: zs.c,v 1.12 1996/12/18 05:04:22 scottr Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -184,7 +184,7 @@ static u_char zs_init_reg[16] = {
****************************************************************/
/* Definition of the driver for autoconfig. */
-static int zsc_match __P((struct device *, void *, void *));
+static int zsc_match __P((struct device *, struct cfdata *, void *));
static void zsc_attach __P((struct device *, struct device *, void *));
static int zsc_print __P((void *aux, const char *name));
@@ -204,9 +204,9 @@ int zssoft __P((void *));
* Is the zs chip present?
*/
static int
-zsc_match(parent, vcf, aux)
+zsc_match(parent, cf, aux)
struct device *parent;
- void *vcf;
+ struct cfdata *cf;
void *aux;
{
return 1;
@@ -245,7 +245,8 @@ zsc_attach(parent, self, aux)
volatile struct zschan *zc;
struct zs_chanstate *cs;
int zsc_unit, channel;
- int reset, s, chip;
+ int reset, s;
+ int chip = 0; /* XXX quiet bogus gcc warning */
if (!zsinited) zs_init();
zsinited = 2;
@@ -356,7 +357,8 @@ zstty_mdattach(zsc, zst, cs, tp)
*/
cs->cs_clocks[1].clk = mac68k_machine.print_dcd_clk;
cs->cs_clocks[2].clk = mac68k_machine.print_cts_clk;
- }
+ } else
+ theflags = 0;
if (cs->cs_clocks[1].clk)
zst->zst_hwflags |= ZS_HWFLAG_IGDCD;