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:
parent
f82301661c
commit
36884ceb76
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue