From 7c8c17745187f3a98406bb29f524367c37916e73 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 1 Jan 2006 11:59:41 +0000 Subject: Let cons_init() and cons_init_bell() initialize the whole consdev structure, thus removing the need for drivers to initialize cn_pri to CN_DEAD when hardware probe fails. --- sys/arch/mvme88k/dev/cl.c | 4 +--- sys/arch/mvme88k/dev/dart.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/arch/mvme88k/dev') diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index f74f056b2d7..78c7de302cf 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.49 2005/01/25 12:13:22 miod Exp $ */ +/* $OpenBSD: cl.c,v 1.50 2006/01/01 11:59:39 miod Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -886,8 +886,6 @@ clcnprobe(cp) { int maj; - cp->cn_pri = CN_DEAD; - /* bomb if it'a a MVME188 */ if (brdtyp == BRD_188 || badaddr(CD2400_BASE_ADDR, 1) != 0) return; diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index 9cebc3f5f1c..a5c7f9914bb 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.44 2005/10/13 19:48:34 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.45 2006/01/01 11:59:39 miod Exp $ */ /* * Mach Operating System @@ -1154,8 +1154,6 @@ dartcnprobe(cp) { int maj; - cp->cn_pri = CN_DEAD; - if (brdtyp != BRD_188 || badaddr(DART_BASE, 2) != 0) return; -- cgit v1.2.3