summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/sparc/dev/fb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index 2b18cb85a1f..917f9f38631 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -138,6 +138,9 @@ fb_setsize(fb, depth, def_width, def_height, node, bustype)
* to be correct as defaults go...
*/
switch (bustype) {
+ case BUS_PFOUR:
+ fb->fb_linebytes = (fb->fb_type.fb_width * depth) / 8;
+ break;
case BUS_VME16:
case BUS_VME32:
case BUS_OBIO:
@@ -199,7 +202,7 @@ fb_setsize(fb, depth, def_width, def_height, node, bustype)
}
#endif /* SUN4M */
- donesize:
+donesize:
fb->fb_linebytes = (fb->fb_type.fb_width * depth) / 8;
break;
case BUS_SBUS: