Module Name:    src
Committed By:   macallan
Date:           Mon Oct 29 18:11:36 UTC 2012

Modified Files:
        src/sys/arch/arm/omap: omapfb.c

Log Message:
don't try to init more than 256 CLUT entries, no matter what colour depth
we're in


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/omap/omapfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/omap/omapfb.c
diff -u src/sys/arch/arm/omap/omapfb.c:1.3 src/sys/arch/arm/omap/omapfb.c:1.4
--- src/sys/arch/arm/omap/omapfb.c:1.3	Fri Jul  1 20:30:21 2011
+++ src/sys/arch/arm/omap/omapfb.c	Mon Oct 29 18:11:36 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: omapfb.c,v 1.3 2011/07/01 20:30:21 dyoung Exp $	*/
+/*	$NetBSD: omapfb.c,v 1.4 2012/10/29 18:11:36 macallan Exp $	*/
 
 /*
  * Copyright (c) 2010 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.3 2011/07/01 20:30:21 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.4 2012/10/29 18:11:36 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -540,7 +540,7 @@ omapfb_restore_palette(struct omapfb_sof
 {
 	int i;
 
-	for (i = 0; i < (1 << sc->sc_depth); i++) {
+	for (i = 0; i < 256; i++) {
 		omapfb_putpalreg(sc, i, sc->sc_cmap_red[i],
 		    sc->sc_cmap_green[i], sc->sc_cmap_blue[i]);
 	}

Reply via email to