Commit d287a619 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] sparc32: fix blank screen problem in cg6.c

Although the CG6 framebuffer is detected and initialized, without this
patch all it displays is a blank screen. Tested on an Ultra 1 with a
TGX+.

Originally from Bob Breuer for the CG14.
Signed-off-by: default avatarAdam Kropelin <akropel1@rochester.rr.com>
Acked-by: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 41504c07
...@@ -689,6 +689,9 @@ static void cg6_init_one(struct sbus_dev *sdev) ...@@ -689,6 +689,9 @@ static void cg6_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;
linebytes = prom_getintdefault(sdev->prom_node, "linebytes", linebytes = prom_getintdefault(sdev->prom_node, "linebytes",
all->info.var.xres); all->info.var.xres);
...@@ -732,6 +735,7 @@ static void cg6_init_one(struct sbus_dev *sdev) ...@@ -732,6 +735,7 @@ static void cg6_init_one(struct sbus_dev *sdev)
return; return;
} }
fb_set_cmap(&all->info.cmap, &all->info);
cg6_init_fix(&all->info, linebytes); cg6_init_fix(&all->info, linebytes);
if (register_framebuffer(&all->info) < 0) { if (register_framebuffer(&all->info) < 0) {
......
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