summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-01-17 11:24:29 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-01-17 11:25:30 -0500
commit89f71d1be4a28e7bf0d60e3089b1f28202fb821f (patch)
tree8db0ab3dfd06e1fc12b5e516633b41e770892424
parent9600e4a0b57693da451f3f5ca61637d0275c3836 (diff)
Fix mis-merge
qxl_reset() has to be defined before qxl_close_screen().
-rw-r--r--src/qxl_driver.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 5dec522..f7231a1 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -481,35 +481,6 @@ qxl_restore_state(ScrnInfoPtr pScrn)
}
#endif /* XSPICE */
-static Bool
-qxl_close_screen(int scrnIndex, ScreenPtr pScreen)
-{
- ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
- qxl_screen_t *qxl = pScrn->driverPrivate;
- Bool result;
-
- ErrorF ("Freeing %p\n", qxl->fb);
- free(qxl->fb);
- qxl->fb = NULL;
-
- pScreen->CreateScreenResources = qxl->create_screen_resources;
- pScreen->CloseScreen = qxl->close_screen;
-
- result = pScreen->CloseScreen(scrnIndex, pScreen);
-
- if (!xf86IsPrimaryPci (qxl->pci) && qxl->primary)
- qxl_reset (qxl);
-
- if (pScrn->vtSema)
- {
- qxl_restore_state(pScrn);
- qxl_unmap_memory(qxl, scrnIndex);
- }
- pScrn->vtSema = FALSE;
-
- return result;
-}
-
static uint8_t
setup_slot(qxl_screen_t *qxl, uint8_t slot_index_offset,
unsigned long start_phys_addr, unsigned long end_phys_addr,
@@ -576,6 +547,35 @@ qxl_reset (qxl_screen_t *qxl)
#endif
}
+static Bool
+qxl_close_screen(int scrnIndex, ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+ qxl_screen_t *qxl = pScrn->driverPrivate;
+ Bool result;
+
+ ErrorF ("Freeing %p\n", qxl->fb);
+ free(qxl->fb);
+ qxl->fb = NULL;
+
+ pScreen->CreateScreenResources = qxl->create_screen_resources;
+ pScreen->CloseScreen = qxl->close_screen;
+
+ result = pScreen->CloseScreen(scrnIndex, pScreen);
+
+ if (!xf86IsPrimaryPci (qxl->pci) && qxl->primary)
+ qxl_reset (qxl);
+
+ if (pScrn->vtSema)
+ {
+ qxl_restore_state(pScrn);
+ qxl_unmap_memory(qxl, scrnIndex);
+ }
+ pScrn->vtSema = FALSE;
+
+ return result;
+}
+
static void
set_screen_pixmap_header (ScreenPtr pScreen)
{