From 36884ceb76661b09af62005c3b60b41670ae71aa Mon Sep 17 00:00:00 2001 From: Finn Thain Date: Mon, 1 Apr 2019 17:46:55 +0200 Subject: 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 Signed-off-by: Finn Thain Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/macfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video/fbdev') diff --git a/drivers/video/fbdev/macfb.c b/drivers/video/fbdev/macfb.c index 37c56c45ee39..8820a556014c 100644 --- a/drivers/video/fbdev/macfb.c +++ b/drivers/video/fbdev/macfb.c @@ -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); -- cgit v1.2.3