Commit 12853bfa authored by Tom 'spot' Callaway's avatar Tom 'spot' Callaway Committed by David S. Miller

[CG3]: Set framebuffer cmap correctly.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52db745f
...@@ -385,6 +385,9 @@ static void cg3_init_one(struct sbus_dev *sdev) ...@@ -385,6 +385,9 @@ static void cg3_init_one(struct sbus_dev *sdev)
all->par.physbase = sdev->reg_addrs[0].phys_addr; all->par.physbase = sdev->reg_addrs[0].phys_addr;
sbusfb_fill_var(&all->info.var, sdev->prom_node, 8); sbusfb_fill_var(&all->info.var, sdev->prom_node, 8);
all->info.var.red.length = 8;
all->info.var.green.length = 8;
all->info.var.blue.length = 8;
if (!strcmp(sdev->prom_name, "cgRDI")) if (!strcmp(sdev->prom_name, "cgRDI"))
all->par.flags |= CG3_FLAG_RDI; all->par.flags |= CG3_FLAG_RDI;
if (all->par.flags & CG3_FLAG_RDI) if (all->par.flags & CG3_FLAG_RDI)
...@@ -419,6 +422,7 @@ static void cg3_init_one(struct sbus_dev *sdev) ...@@ -419,6 +422,7 @@ static void cg3_init_one(struct sbus_dev *sdev)
kfree(all); kfree(all);
return; return;
} }
fb_set_cmap(&all->info.cmap, &all->info);
cg3_init_fix(&all->info, linebytes); cg3_init_fix(&all->info, linebytes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment