From: Benjamin Herrenschmidt Date: Wed, 14 Dec 2011 13:55:11 +0000 (+0000) Subject: powerpc: Fix old bug in prom_init setting of the color X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f53638c805f75989f4b4be07efcfd173cdd5e2d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 32b5b05082ea..55b4080a821e 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;