summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-11-05 10:32:04 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-11-05 10:32:04 +0100
commit5659e2f1b08e44d0c4f21a403e91b4801ef78f62 (patch)
tree352d3cd8bc617436234ba82c6ab7ed3373748147
parentd41d73f5f9d8baee7137e94da2c7852ea0412180 (diff)
radeon: Fix build warning on powerpc.
-rw-r--r--src/radeon_output.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c
index e9a709fd..599a89c1 100644
--- a/src/radeon_output.c
+++ b/src/radeon_output.c
@@ -668,8 +668,6 @@ void RADEONConnectorFindMonitor(ScrnInfoPtr pScrn, xf86OutputPtr output)
static RADEONMonitorType RADEONPortCheckNonDDC(ScrnInfoPtr pScrn, xf86OutputPtr output)
{
- RADEONInfoPtr info = RADEONPTR(pScrn);
- unsigned char *RADEONMMIO = info->MMIO;
RADEONOutputPrivatePtr radeon_output = output->driver_private;
RADEONMonitorType MonType = MT_NONE;
@@ -677,7 +675,11 @@ static RADEONMonitorType RADEONPortCheckNonDDC(ScrnInfoPtr pScrn, xf86OutputPtr
#if defined(__powerpc__)
/* not sure on ppc, OF? */
#else
+ RADEONInfoPtr info = RADEONPTR(pScrn);
+
if (!info->IsAtomBios) {
+ unsigned char *RADEONMMIO = info->MMIO;
+
/* see if the lid is closed -- only works at boot */
if (INREG(RADEON_BIOS_6_SCRATCH) & 0x10)
MonType = MT_NONE;