summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-03-21 17:14:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-03-21 17:14:13 +0000
commita4dfb5105ae3866659fb1f7fa0064848f84803b3 (patch)
tree6288779615d8e165dee87fbf8ae881639a87ba3a /sys/arch/sparc64
parent3fcfaa178dc4d243601bc3358f40e538c321ef07 (diff)
Do not attach vgafb if not the console device, since the PROM will not have
initialized the device in this case.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/vgafb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c
index b6d4d1c3344..7166ae2353a 100644
--- a/sys/arch/sparc64/dev/vgafb.c
+++ b/sys/arch/sparc64/dev/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.50 2007/03/06 19:13:13 miod Exp $ */
+/* $OpenBSD: vgafb.c,v 1.51 2008/03/21 17:14:12 miod Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -143,6 +143,12 @@ vgafbmatch(parent, vcf, aux)
strcmp(name, "SUNW,Expert3D-Lite") == 0)
return (0);
+ /*
+ * XXX Non-console devices do not get configured by the PROM,
+ * XXX so do not attach them yet.
+ */
+ if (!vgafb_is_console(node))
+ return (0);
if (PCI_CLASS(pa->pa_class) == PCI_CLASS_PREHISTORIC &&
PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_PREHISTORIC_VGA)