From bef2006cc77ed2c83e23938b54d5b6e907a0b86a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 1 Jun 1996 09:35:37 +0000 Subject: all ports have dk_establish() --- sys/dev/isa/mcd.c | 4 +++- sys/dev/isa/wd.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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++) { -- cgit v1.2.3