summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/cgtwo.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-12-03 16:38:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-12-03 16:38:14 +0000
commite80be550edadedd59814b011a900b1b84a8688b0 (patch)
tree9ad0302eade7154e1b1c465ce93dd0617924845f /sys/arch/sparc/dev/cgtwo.c
parentd9b4d3e5f6d68ef92222ca3f4b1771d00ac04799 (diff)
Clean frame buffer attachment code:
- There is no need to check for buses config(8) will not let us attach to - Better P4 bus logic, which does not need to abuse device flags - Do not bother trying to print a meaningful device description when it is not connected to sbus.
Diffstat (limited to 'sys/arch/sparc/dev/cgtwo.c')
-rw-r--r--sys/arch/sparc/dev/cgtwo.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/arch/sparc/dev/cgtwo.c b/sys/arch/sparc/dev/cgtwo.c
index d57db8ab2e1..635cbbfec16 100644
--- a/sys/arch/sparc/dev/cgtwo.c
+++ b/sys/arch/sparc/dev/cgtwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgtwo.c,v 1.34 2006/06/29 17:52:21 miod Exp $ */
+/* $OpenBSD: cgtwo.c,v 1.35 2006/12/03 16:38:13 miod Exp $ */
/* $NetBSD: cgtwo.c,v 1.22 1997/05/24 20:16:12 pk Exp $ */
/*
@@ -172,20 +172,6 @@ cgtwoattach(struct device *parent, struct device *self, void *args)
struct confargs *ca = args;
int node = 0;
int isconsole = 0;
- char *nam = NULL;
-
- switch (ca->ca_bustype) {
- case BUS_VME16:
- node = 0;
- nam = "cgtwo";
- break;
-
- default:
- panic("cgtwoattach: impossible bustype");
- /* NOTREACHED */
- }
-
- printf(": %s", nam);
if (CPU_ISSUN4) {
struct eeprom *eep = (struct eeprom *)eeprom_va;
@@ -226,7 +212,7 @@ cgtwoattach(struct device *parent, struct device *self, void *args)
fbwscons_init(&sc->sc_sunfb, isconsole ? 0 : RI_CLEAR);
fbwscons_setcolormap(&sc->sc_sunfb, cgtwo_setcolor);
- printf(", %dx%d\n", sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height);
+ printf(": %dx%d\n", sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height);
if (isconsole) {
fbwscons_console_init(&sc->sc_sunfb, -1);