diff options
Diffstat (limited to 'sys/arch/sparc/dev/cgfour.c')
-rw-r--r-- | sys/arch/sparc/dev/cgfour.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/cgfour.c b/sys/arch/sparc/dev/cgfour.c index c263608affa..e1701d2d5fc 100644 --- a/sys/arch/sparc/dev/cgfour.c +++ b/sys/arch/sparc/dev/cgfour.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgfour.c,v 1.25 2005/03/23 17:16:34 miod Exp $ */ +/* $OpenBSD: cgfour.c,v 1.26 2006/07/25 21:23:30 miod Exp $ */ /* $NetBSD: cgfour.c,v 1.13 1997/05/24 20:16:06 pk Exp $ */ /* @@ -151,7 +151,7 @@ cgfourattach(struct device *parent, struct device *self, void *args) { struct cgfour_softc *sc = (struct cgfour_softc *)self; struct confargs *ca = args; - int node = 0, i; + int node = 0; volatile struct bt_regs *bt; int isconsole = 0; @@ -183,14 +183,9 @@ cgfourattach(struct device *parent, struct device *self, void *args) sc->sc_phys = ca->ca_ra.ra_reg[0]; - /* grab initial (current) color map */ - bt = &sc->sc_fbc->fbc_dac; - bt->bt_addr = 0; - for (i = 0; i < 256 * 3 / 4; i++) - ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24; - /* enable video */ fb_pfour_burner(sc, 1, 0); + bt = &sc->sc_fbc->fbc_dac; BT_INIT(bt, 24); /* |