summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-12 22:53:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-12 22:53:03 +0000
commitf59907c012f8920c4a611098e427b7cb0a054109 (patch)
treea751b00e08aebfab1bccc7f9bd13059094806cac /sys/arch/sparc/dev
parent1b5498f9605cca0b29b572f11c1a76f4882fb27b (diff)
Previous fix was half-done, move the wsscreen_list array into the softc
as well.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index a1f7d23d097..19f6c8a9c6d 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.35 2006/03/12 22:17:47 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.36 2006/03/12 22:53:01 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -463,7 +463,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 */
@@ -481,9 +480,9 @@ fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole)
op->show_screen = fb_show_screen;
}
- 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;