From 5659e2f1b08e44d0c4f21a403e91b4801ef78f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 5 Nov 2007 10:32:04 +0100 Subject: radeon: Fix build warning on powerpc. --- src/radeon_output.c | 6 ++++-- 1 file 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; -- cgit v1.2.3