]> err.no Git - linux-2.6/commitdiff
sh7760fb: write colormap value to hardware
authorManuel Lauss <mano@roarinelk.homelinux.net>
Mon, 28 Jul 2008 22:46:39 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 23:30:21 +0000 (16:30 -0700)
The computed color value is never actually written to hardware
colormap register.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Cc: Munakata Hisao <munakata.hisao@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/sh7760fb.c

index 4d0e28c5790b5eb35e34e439703a1ee019340a33..8d0212da4514eb3e98a614b7139f48391f00f779 100644 (file)
@@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
                col |= ((*g) & 0xff) << 8;
                col |= ((*b) & 0xff);
                col &= SH7760FB_PALETTE_MASK;
+               iowrite32(col, par->base + LDPR(s));
 
                if (s < 16)
                        ((u32 *) (info->pseudo_palette))[s] = s;