diff -ru xf86-video-ati.original/src/atidri.c xf86-video-ati/src/atidri.c
--- xf86-video-ati.original/src/atidri.c	2006-03-08 20:50:47.000000000 +0100
+++ xf86-video-ati/src/atidri.c	2006-03-08 20:33:26.000000000 +0100
@@ -1149,7 +1149,7 @@
    pDRIInfo->ddxDriverMajorVersion = ATI_VERSION_MAJOR;
    pDRIInfo->ddxDriverMinorVersion = ATI_VERSION_MINOR;
    pDRIInfo->ddxDriverPatchVersion = ATI_VERSION_PATCH;
-   pDRIInfo->frameBufferPhysicalAddress = pATI->LinearBase;
+   pDRIInfo->frameBufferPhysicalAddress = (void *)pATI->LinearBase;
    pDRIInfo->frameBufferSize = pATI->LinearSize;
    pDRIInfo->frameBufferStride = (pScreenInfo->displayWidth *
 				  pATI->FBBytesPerPixel);
diff -ru xf86-video-ati.original/src/r128_dri.c xf86-video-ati/src/r128_dri.c
--- xf86-video-ati.original/src/r128_dri.c	2006-03-08 20:50:47.000000000 +0100
+++ xf86-video-ati/src/r128_dri.c	2006-03-08 20:37:55.000000000 +0100
@@ -1034,7 +1034,7 @@
     pDRIInfo->ddxDriverMajorVersion      = R128_VERSION_MAJOR;
     pDRIInfo->ddxDriverMinorVersion      = R128_VERSION_MINOR;
     pDRIInfo->ddxDriverPatchVersion      = R128_VERSION_PATCH;
-    pDRIInfo->frameBufferPhysicalAddress = info->LinearAddr;
+    pDRIInfo->frameBufferPhysicalAddress = (void *)info->LinearAddr;
     pDRIInfo->frameBufferSize            = info->FbMapSize;
     pDRIInfo->frameBufferStride          = (pScrn->displayWidth *
 					    info->CurrentLayout.pixel_bytes);


