summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-12-14 13:55:11 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-12-19 14:41:25 +1100
commit3f53638c805f75989f4b4be07efcfd173cdd5e2d (patch)
treea3759b96bb6ddeda50b5701c33fe2cf0103936e8 /arch
parent64968f60e73d7b3f9fca1ca5cd985d75b2cbca44 (diff)
downloadop-kernel-dev-3f53638c805f75989f4b4be07efcfd173cdd5e2d.zip
op-kernel-dev-3f53638c805f75989f4b4be07efcfd173cdd5e2d.tar.gz
powerpc: Fix old bug in prom_init setting of the color
We have an array of 16 entries and a loop of 32 iterations... oops. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/prom_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 32b5b05..55b4080 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -2080,7 +2080,7 @@ static void __init prom_check_displays(void)
/* Setup a usable color table when the appropriate
* method is available. Should update this to set-colors */
clut = RELOC(default_colors);
- for (i = 0; i < 32; i++, clut += 3)
+ for (i = 0; i < 16; i++, clut += 3)
if (prom_set_color(ih, i, clut[0], clut[1],
clut[2]) != 0)
break;
OpenPOWER on IntegriCloud