diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-12 22:53:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-12 22:53:03 +0000 |
commit | f59907c012f8920c4a611098e427b7cb0a054109 (patch) | |
tree | a751b00e08aebfab1bccc7f9bd13059094806cac /sys/arch/sparc64/dev/fb.c | |
parent | 1b5498f9605cca0b29b572f11c1a76f4882fb27b (diff) |
Previous fix was half-done, move the wsscreen_list array into the softc
as well.
Diffstat (limited to 'sys/arch/sparc64/dev/fb.c')
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c index 42e6b4f5143..d5c94e5bab1 100644 --- a/sys/arch/sparc64/dev/fb.c +++ b/sys/arch/sparc64/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.9 2006/03/12 22:17:50 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.10 2006/03/12 22:53:02 miod Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -280,7 +280,6 @@ void fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole) { struct wsemuldisplaydev_attach_args waa; - struct wsscreen_descr *scrlist[1]; if (isconsole == 0) { /* done in wsdisplay_cnattach() earlier if console */ @@ -291,9 +290,9 @@ fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole) fb_cookie = sf; } - scrlist[0] = &sf->sf_wsd; + sf->sf_scrlist[0] = &sf->sf_wsd; sf->sf_wsl.nscreens = 1; - sf->sf_wsl.screens = (const struct wsscreen_descr **)scrlist; + sf->sf_wsl.screens = (const struct wsscreen_descr **)sf->sf_scrlist; waa.console = isconsole; waa.scrdata = &sf->sf_wsl; |