diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2019-04-01 18:46:55 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-04-01 18:46:55 +0300 |
commit | 36884ceb76661b09af62005c3b60b41670ae71aa (patch) | |
tree | 5427f43e7941db8e5e14b362d0e07477792c67e2 /drivers/video/fbdev | |
parent | f82301661c6ca3414fb0f6c223f206be938b9495 (diff) | |
download | linux-36884ceb76661b09af62005c3b60b41670ae71aa.tar.xz |
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>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/macfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |