summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-01 09:35:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-01 09:35:37 +0000
commitbef2006cc77ed2c83e23938b54d5b6e907a0b86a (patch)
treea45628a55c77d8d91920d3f64a35fee1b0b74f34 /sys/dev
parent9b233d7209ac57ddc7e2806fed7011b1975f72cf (diff)
all ports have dk_establish()
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/mcd.c4
-rw-r--r--sys/dev/isa/wd.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index 132c9a733bd..d5287af366f 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.13 1996/05/27 07:57:34 deraadt Exp $ */
+/* $OpenBSD: mcd.c,v 1.14 1996/06/01 09:35:35 deraadt Exp $ */
/* $NetBSD: mcd.c,v 1.49 1996/05/12 23:53:11 mycroft Exp $ */
/*
@@ -224,6 +224,8 @@ mcdattach(parent, self, aux)
sc->sc_dk.dk_name = sc->sc_dev.dv_xname;
disk_attach(&sc->sc_dk);
+ dk_establish(&sc->sc_dk, &sc->sc_dev);
+
printf(": model %s\n", sc->type != 0 ? sc->type : "unknown");
(void) mcd_setlock(sc, MCD_LK_UNLOCK);
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index d384c5ad144..82c2ac91ac5 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.13 1996/05/26 00:27:31 deraadt Exp $ */
+/* $OpenBSD: wd.c,v 1.14 1996/06/01 09:35:36 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -316,6 +316,8 @@ wdattach(parent, self, aux)
wd->sc_dk.dk_name = wd->sc_dev.dv_xname;
disk_attach(&wd->sc_dk);
+ dk_establish(&wd->sc_dk, &wd->sc_dev);
+
wd_get_parms(wd);
for (blank = 0, p = wd->sc_params.wdp_model, q = buf, i = 0;
i < sizeof(wd->sc_params.wdp_model); i++) {