diff options
author | 2008-03-21 17:14:12 +0000 | |
---|---|---|
committer | 2008-03-21 17:14:12 +0000 | |
commit | 3116beb5647a84c56c41774a952d8aa9b0598a30 (patch) | |
tree | ce05c064af480699cc15644e51911879d0c5b1f7 | |
parent | regen (diff) | |
download | wireguard-openbsd-3116beb5647a84c56c41774a952d8aa9b0598a30.tar.xz wireguard-openbsd-3116beb5647a84c56c41774a952d8aa9b0598a30.zip |
Do not attach vgafb if not the console device, since the PROM will not have
initialized the device in this case.
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 8 |
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) |