diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-03-07 16:44:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-03-07 16:44:54 +0000 |
commit | ad74bb04b21760e9777828f3672af310f0f17929 (patch) | |
tree | 3e00e1b8db1d1589376c9460fbaf25fd0391cbf4 /sys/arch/sparc64/dev/fb.c | |
parent | e2342454212ad6610db13731b4cbd2dc7c61929a (diff) |
Do not bother passing the blanking routine to fbwscons_console_init(),
as fbwscons_attach() can find it on its own.
Diffstat (limited to 'sys/arch/sparc64/dev/fb.c')
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c index fd257bf332c..90bd0f806f7 100644 --- a/sys/arch/sparc64/dev/fb.c +++ b/sys/arch/sparc64/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.6 2004/11/29 22:07:40 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.7 2005/03/07 16:44:52 miod Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -174,8 +174,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; @@ -233,10 +232,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 @@ -273,6 +268,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; |