summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-07-13 11:31:03 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2008-07-13 11:31:03 +0200
commitf8da849fd89322a54cc4d722767da755358eab70 (patch)
treeab7bf7896f846f1cae45bf19ae2c3f1565aa7afa /src/radeon_driver.c
parenta6db4dc65aec560f3b1f37ff73ec6b0bd8207295 (diff)
Only declare local variable when it's used.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 2b6908e2..e9de3380 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2046,7 +2046,10 @@ static Bool RADEONPreInitAccel(ScrnInfoPtr pScrn)
static Bool RADEONPreInitInt10(ScrnInfoPtr pScrn, xf86Int10InfoPtr *ppInt10)
{
+#if (!defined(__powerpc__) && !defined(__sparc__)) || \
+ (defined(XSERVER_LIBPCIACCESS) && HAVE_PCI_DEVICE_ENABLE)
RADEONInfoPtr info = RADEONPTR(pScrn);
+#endif
#if !defined(__powerpc__) && !defined(__sparc__)
unsigned char *RADEONMMIO = info->MMIO;
uint32_t fp2_gen_ctl_save = 0;