Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom 'spot' Callaway <tcallawa@redhat.com>2005-02-11 07:26:37 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2005-02-11 07:26:37 -0800
commit12853bfa0beffd7a27ac3bff9f0677e6e106cb78 (patch)
treee0ac91bc7160ef71d428142e913feccc0f2e0f0d
parent52db745f8f844133514e214adb457ba97ee240e1 (diff)
[CG3]: Set framebuffer cmap correctly.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/video/cg3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/cg3.c b/drivers/video/cg3.c
index 4b63e0ff8e42..a9f88fe0d7d2 100644
--- a/drivers/video/cg3.c
+++ b/drivers/video/cg3.c
@@ -385,6 +385,9 @@ static void cg3_init_one(struct sbus_dev *sdev)
all->par.physbase = sdev->reg_addrs[0].phys_addr;
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"))
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)
kfree(all);
return;
}
+ fb_set_cmap(&all->info.cmap, &all->info);
cg3_init_fix(&all->info, linebytes);