summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gx_driver.c2
-rw-r--r--src/lx_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gx_driver.c b/src/gx_driver.c
index 46b04f5..f842712 100644
--- a/src/gx_driver.c
+++ b/src/gx_driver.c
@@ -1250,7 +1250,7 @@ GXScreenInit(int scrnIndex, ScreenPtr pScrn, int argc, char **argv)
if (pGeode->useEXA) {
- if (!(pGeode->pExa = xnfcalloc(sizeof(ExaDriverRec), 1))) {
+ if (!(pGeode->pExa = exaDriverAlloc())) {
xf86DrvMsg(scrnIndex, X_ERROR,
"Couldn't allocate the EXA structure.\n");
pGeode->NoAccel = TRUE;
diff --git a/src/lx_driver.c b/src/lx_driver.c
index 42742fb..19e923e 100644
--- a/src/lx_driver.c
+++ b/src/lx_driver.c
@@ -842,7 +842,7 @@ LXScreenInit(int scrnIndex, ScreenPtr pScrn, int argc, char **argv)
if (!pGeode->NoAccel) {
- pGeode->pExa = xnfcalloc(sizeof(ExaDriverRec), 1);
+ pGeode->pExa = exaDriverAlloc();
if (pGeode->pExa) {