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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Finn Thain 2019-04-01 17:46:55 +02:00 committed by Bartlomiej Zolnierkiewicz
parent f82301661c
commit 36884ceb76
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ static int dafb_setpalette(unsigned int regno, unsigned int red,
unsigned int green, unsigned int blue,
struct fb_info *info)
{
static int lastreg = -1;
static int lastreg = -2;
unsigned long flags;
local_irq_save(flags);