diff options
author | Manuel Lauss <mano@roarinelk.homelinux.net> | 2008-07-28 18:46:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 19:30:21 -0400 |
commit | c27ef92d8e0c29a9e8b8ee1b04f3d2cace482d92 (patch) | |
tree | 15ddb97a20d323367dbff1f03acda699dbe899cc | |
parent | 7fcba054373d5dfc43d26e243a5c9b92069972ee (diff) |
sh7760fb: write colormap value to hardware
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>
-rw-r--r-- | drivers/video/sh7760fb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/sh7760fb.c b/drivers/video/sh7760fb.c index 4d0e28c5790b..8d0212da4514 100644 --- a/drivers/video/sh7760fb.c +++ b/drivers/video/sh7760fb.c | |||
@@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info) | |||
152 | col |= ((*g) & 0xff) << 8; | 152 | col |= ((*g) & 0xff) << 8; |
153 | col |= ((*b) & 0xff); | 153 | col |= ((*b) & 0xff); |
154 | col &= SH7760FB_PALETTE_MASK; | 154 | col &= SH7760FB_PALETTE_MASK; |
155 | iowrite32(col, par->base + LDPR(s)); | ||
155 | 156 | ||
156 | if (s < 16) | 157 | if (s < 16) |
157 | ((u32 *) (info->pseudo_palette))[s] = s; | 158 | ((u32 *) (info->pseudo_palette))[s] = s; |