summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/fb.c')
-rw-r--r--sys/arch/sparc/dev/fb.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index 4246ba94791..306a6e3b36a 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.31 2005/02/27 22:25:34 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.32 2005/03/07 16:44:50 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -352,8 +352,7 @@ fbwscons_init(struct sunfb *sf, int flags)
}
void
-fbwscons_console_init(struct sunfb *sf, int row,
- void (*burner)(void *, u_int, u_int))
+fbwscons_console_init(struct sunfb *sf, int row)
{
long defattr;
@@ -411,10 +410,6 @@ fbwscons_console_init(struct sunfb *sf, int row,
fb_initwsd(sf);
wsdisplay_cnattach(&sf->sf_wsd, &sf->sf_ro,
sf->sf_ro.ri_ccol, sf->sf_ro.ri_crow, defattr);
-
- /* remember screen burner routine */
- fb_burner = burner;
- fb_cookie = sf;
}
void
@@ -451,6 +446,10 @@ fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole)
if (isconsole == 0) {
/* done in wsdisplay_cnattach() earlier if console */
fb_initwsd(sf);
+ } else {
+ /* remember screen burner routine */
+ fb_burner = op->burn_screen;
+ fb_cookie = sf;
}
scrlist[0] = &sf->sf_wsd;