Commit 36884ceb authored by Finn Thain's avatar Finn Thain Committed by Bartlomiej Zolnierkiewicz

video/macfb: Always initialize DAFB colour table pointer register

Don't skip the framebuffer CLUT pointer register initialization when
the first dafb_setpalette() invocation has regno equal to zero.
Suggested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent f8230166
...@@ -148,7 +148,7 @@ static int dafb_setpalette(unsigned int regno, unsigned int red, ...@@ -148,7 +148,7 @@ static int dafb_setpalette(unsigned int regno, unsigned int red,
unsigned int green, unsigned int blue, unsigned int green, unsigned int blue,
struct fb_info *info) struct fb_info *info)
{ {
static int lastreg = -1; static int lastreg = -2;
unsigned long flags; unsigned long flags;
local_irq_save(flags); local_irq_save(flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment