Skip to content

Commit a259736

Browse files
XECDesignpelwell
authored andcommitted
rpisense-fb: Set pseudo_pallete to prevent crash on fbcon takeover
Signed-off-by: Serge Schneider <[email protected]>
1 parent 7a4cdeb commit a259736

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/video/fbdev/rpisense-fb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ static u8 gamma_low[32] = {0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
5252

5353
static u8 gamma_user[32];
5454

55+
static u32 pseudo_palette[16];
56+
5557
static struct rpisense_fb_param rpisense_fb_param = {
5658
.vmem = NULL,
5759
.vmemsize = 128,
@@ -225,6 +227,7 @@ static int rpisense_fb_probe(struct platform_device *pdev)
225227
info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;
226228
info->screen_base = rpisense_fb_param.vmem;
227229
info->screen_size = rpisense_fb_param.vmemsize;
230+
info->pseudo_palette = pseudo_palette;
228231

229232
if (lowlight)
230233
rpisense_fb_param.gamma = gamma_low;

0 commit comments

Comments
 (0)