summaryrefslogtreecommitdiff
path: root/hw/kdrive/smi
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kdrive/smi')
-rw-r--r--hw/kdrive/smi/smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kdrive/smi/smi.c b/hw/kdrive/smi/smi.c
index aaa0b8356..635fca4da 100644
--- a/hw/kdrive/smi/smi.c
+++ b/hw/kdrive/smi/smi.c
@@ -62,6 +62,7 @@ smiScreenInit (KdScreenInfo *screen)
if (!smis)
return FALSE;
memset (smis, '\0', sizeof (SmiScreenInfo));
+ screen->driver = smis;
if (!subScreenInitialize (screen, &smis->sub))
{
xfree (smis);
@@ -75,7 +76,6 @@ smiScreenInit (KdScreenInfo *screen)
#else
smis->screen = smic->sub.fb;
#endif
- screen->driver = smis;
LEAVE();
return TRUE;
}