summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/cgsix.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sbus/cgsix.c')
-rw-r--r--sys/dev/sbus/cgsix.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/dev/sbus/cgsix.c b/sys/dev/sbus/cgsix.c
index 3821e8979c1..6480897f328 100644
--- a/sys/dev/sbus/cgsix.c
+++ b/sys/dev/sbus/cgsix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgsix.c,v 1.53 2006/06/02 20:00:56 miod Exp $ */
+/* $OpenBSD: cgsix.c,v 1.54 2006/07/25 21:23:32 miod Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -116,7 +116,7 @@ cgsixattach(struct device *parent, struct device *self, void *aux)
{
struct cgsix_softc *sc = (struct cgsix_softc *)self;
struct sbus_attach_args *sa = aux;
- int node, console, i;
+ int node, console;
u_int32_t fhc, rev;
const char *nam;
@@ -198,14 +198,6 @@ cgsixattach(struct device *parent, struct device *self, void *aux)
rev = (fhc & FHC_REV_MASK) >> FHC_REV_SHIFT;
cgsix_reset(sc, rev);
- /* grab the current palette */
- BT_WRITE(sc, BT_ADDR, 0);
- for (i = 0; i < 256; i++) {
- sc->sc_cmap.cm_map[i][0] = BT_READ(sc, BT_CMAP) >> 24;
- sc->sc_cmap.cm_map[i][1] = BT_READ(sc, BT_CMAP) >> 24;
- sc->sc_cmap.cm_map[i][2] = BT_READ(sc, BT_CMAP) >> 24;
- }
-
cgsix_burner(sc, 1, 0);
sc->sc_sunfb.sf_ro.ri_bits = (void *)bus_space_vaddr(sc->sc_bustag,
@@ -257,7 +249,7 @@ fail_fhc:
bus_space_unmap(sa->sa_bustag, sc->sc_bt_regs, CGSIX_BT_SIZE);
fail_bt:
fail:
-;
+ return;
}
int