Patchwork [xf86-video-i740] Fix loading the driver without XAA

login
register
mail settings
Submitter Matthieu Herrb
Date June 13, 2013, 9:43 p.m.
Message ID <1371159837-5681-1-git-send-email-matthieu.herrb@laas.fr>
Download mbox | patch
Permalink /patch/13855/
State New
Headers show

Comments

Matthieu Herrb - June 13, 2013, 9:43 p.m.
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
---
 src/i740_dga.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git src/i740_dga.c src/i740_dga.c
index 532d614..c16cce3 100644
--- src/i740_dga.c
+++ src/i740_dga.c
@@ -41,10 +41,10 @@ 
 
 static Bool I740_OpenFramebuffer(ScrnInfoPtr, char **, unsigned char **, int *, int *, int *);
 static Bool I740_SetMode(ScrnInfoPtr, DGAModePtr);
-static void I740_Sync(ScrnInfoPtr);
 static int  I740_GetViewport(ScrnInfoPtr);
 static void I740_SetViewport(ScrnInfoPtr, int, int, int);
 #ifdef HAVE_XAA_H
+static void I740_Sync(ScrnInfoPtr);
 static void I740_FillRect(ScrnInfoPtr, int, int, int, int, unsigned long);
 static void I740_BlitRect(ScrnInfoPtr, int, int, int, int, int, int);
 #if 0
@@ -57,8 +57,8 @@  static DGAFunctionRec I740DGAFuncs = {
    I740_SetMode,
    I740_SetViewport,
    I740_GetViewport,
-   I740_Sync,
 #ifdef HAVE_XAA_H
+   I740_Sync,
    I740_FillRect,
    I740_BlitRect,
 #if 0
@@ -67,7 +67,7 @@  static DGAFunctionRec I740DGAFuncs = {
    NULL
 #endif
 #else
-   NULL, NULL, NULL
+   NULL, NULL, NULL, NULL
 #endif
 };