summaryrefslogtreecommitdiff
path: root/sys/dev/sun
diff options
context:
space:
mode:
authorgwr <gwr@NetBSD.org>1996-02-19 04:36:13 +0000
committergwr <gwr@NetBSD.org>1996-02-19 04:36:13 +0000
commitce56580f30c84fb8c189372b4544fcabfc25d988 (patch)
treef20c8a9d11401ad2ae6081d62d984c9b60c0b617 /sys/dev/sun
parente9d6e59c62654b0297e62a1570e94e51013f6f90 (diff)
Attach should get unit from _dev.dv_unit not sc_unit
Diffstat (limited to 'sys/dev/sun')
-rw-r--r--sys/dev/sun/kbd.c4
-rw-r--r--sys/dev/sun/ms.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sun/kbd.c b/sys/dev/sun/kbd.c
index b32ac07d320..d030599e065 100644
--- a/sys/dev/sun/kbd.c
+++ b/sys/dev/sun/kbd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.2 1996/01/30 22:35:16 gwr Exp $ */
+/* $NetBSD: kbd.c,v 1.3 1996/02/19 04:36:13 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -231,7 +231,7 @@ kbd_attach(parent, self, aux)
int reset, s, tconst;
cf = k->k_dev.dv_cfdata;
- kbd_unit = cf->cf_unit;
+ kbd_unit = k->k_dev.dv_unit;
channel = args->channel;
cs = &zsc->zsc_cs[channel];
cs->cs_private = k;
diff --git a/sys/dev/sun/ms.c b/sys/dev/sun/ms.c
index c193db6a435..ea024c86f80 100644
--- a/sys/dev/sun/ms.c
+++ b/sys/dev/sun/ms.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ms.c,v 1.2 1996/01/30 22:35:19 gwr Exp $ */
+/* $NetBSD: ms.c,v 1.3 1996/02/19 04:36:15 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -181,7 +181,7 @@ ms_attach(parent, self, aux)
int reset, s, tconst;
cf = ms->ms_dev.dv_cfdata;
- ms_unit = cf->cf_unit;
+ ms_unit = ms->ms_dev.dv_unit;
channel = args->channel;
cs = &zsc->zsc_cs[channel];
cs->cs_private = ms;