]> git.neil.brown.name Git - history.git/commitdiff
[CG3]: Set framebuffer cmap correctly.
authorTom 'spot' Callaway <tcallawa@redhat.com>
Fri, 11 Feb 2005 15:26:37 +0000 (07:26 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Fri, 11 Feb 2005 15:26:37 +0000 (07:26 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/video/cg3.c

index 4b63e0ff8e42957de5c3600cdccd17dcaa044caa..a9f88fe0d7d2497e33a90aba117b5501a1888eff 100644 (file)
@@ -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);