summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci/vgafb.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-01 11:59:41 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-01 11:59:41 +0000
commit7c8c17745187f3a98406bb29f524367c37916e73 (patch)
tree30dad47898ee31fcbac0fb74a5c5ddccaf8ce36f /sys/arch/macppc/pci/vgafb.c
parent2d6ec71dd3850b256841848bec15fcbbadd35579 (diff)
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.
Diffstat (limited to 'sys/arch/macppc/pci/vgafb.c')
-rw-r--r--sys/arch/macppc/pci/vgafb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c
index 58a66e7f030..6127243d98d 100644
--- a/sys/arch/macppc/pci/vgafb.c
+++ b/sys/arch/macppc/pci/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.26 2005/10/26 18:57:51 martin Exp $ */
+/* $OpenBSD: vgafb.c,v 1.27 2006/01/01 11:59:39 miod Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -373,10 +373,8 @@ vgafb_mmap(void *v, off_t offset, int prot)
void
vgafb_cnprobe(struct consdev *cp)
{
- if (cons_displaytype != 1) {
- cp->cn_pri = CN_DEAD;
+ if (cons_displaytype != 1)
return;
- }
cp->cn_pri = CN_INTERNAL;
}