summaryrefslogtreecommitdiff
path: root/src/lx_driver.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-03-14 13:57:14 -0600
committerJordan Crouse <jordan.crouse@amd.com>2008-03-14 14:16:43 -0600
commitc42454a5d1fba9dc0ef4d671cb839108ef827ec9 (patch)
tree7604cfe24cf8a6d9dd68f4de9efadbe83f056e61 /src/lx_driver.c
parent5e1f6e925bd92c389169c971502b1fd17c625056 (diff)
amd: fix compile and warning issues from the merge
Diffstat (limited to 'src/lx_driver.c')
-rw-r--r--src/lx_driver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lx_driver.c b/src/lx_driver.c
index d77a682..973d54d 100644
--- a/src/lx_driver.c
+++ b/src/lx_driver.c
@@ -634,7 +634,7 @@ LXPreInit(ScrnInfoPtr pScrni, int flags)
&pGeode->tryHWCursor);
if (!xf86GetOptValInteger(GeodeOptions, LX_OPTION_FBSIZE,
- &(pGeode->FBAvail)))
+ (int *) &(pGeode->FBAvail)))
pGeode->FBAvail = 0;
/* For compatability - allow SWCursor too */
@@ -664,7 +664,7 @@ LXPreInit(ScrnInfoPtr pScrni, int flags)
}
xf86GetOptValInteger(GeodeOptions, LX_OPTION_EXA_SCRATCH_BFRSZ,
- &(pGeode->exaBfrSz));
+ (int *) &(pGeode->exaBfrSz));
if (pGeode->exaBfrSz <= 0)
pGeode->exaBfrSz = 0;
@@ -1194,8 +1194,6 @@ LXLoadPalette(ScrnInfoPtr pScrni,
static void
LXDPMSSet(ScrnInfoPtr pScrni, int mode, int flags)
{
- GeodeRec *pGeode = GEODEPTR(pScrni);
-
if (!pScrni->vtSema)
return;