diff options
-rw-r--r-- | src/radeon_crtc.c | 14 | ||||
-rw-r--r-- | src/radeon_output.c | 4 |
2 files changed, 8 insertions, 10 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index a2603a5..ebb8c52 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -606,12 +606,6 @@ RADEONInitCrtc2Registers(xf86CrtcPtr crtc, RADEONSavePtr save, } -/* Compute n/d with rounding */ -static int RADEONDiv(int n, int d) -{ - return (n + (d / 2)) / d; -} - static CARD32 RADEONDiv64(CARD64 n, CARD32 d) { return (n + (d / 2)) / d; @@ -680,10 +674,10 @@ RADEONComputePLL(RADEONPLLPtr pll, } } - ErrorF("best_freq: %d\n", best_freq); - ErrorF("best_feedback_div: %d\n", best_feedback_div); - ErrorF("best_ref_div: %d\n", best_ref_div); - ErrorF("best_post_div: %d\n", best_post_div); + ErrorF("best_freq: %u\n", (unsigned)best_freq); + ErrorF("best_feedback_div: %u\n", (unsigned)best_feedback_div); + ErrorF("best_ref_div: %u\n", (unsigned)best_ref_div); + ErrorF("best_post_div: %u\n", (unsigned)best_post_div); *chosen_dot_clock_freq = best_freq; *chosen_feedback_div = best_feedback_div; diff --git a/src/radeon_output.c b/src/radeon_output.c index 12c83aa..5dd80fa 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -684,6 +684,8 @@ void RADEONConnectorFindMonitor(ScrnInfoPtr pScrn, xf86OutputPtr output) } } +#ifndef __powerpc__ + static RADEONMonitorType RADEONDetectLidStatus(ScrnInfoPtr pScrn) { @@ -723,6 +725,8 @@ RADEONDetectLidStatus(ScrnInfoPtr pScrn) return MonType; } +#endif /* __powerpc__ */ + static RADEONMonitorType RADEONPortCheckNonDDC(ScrnInfoPtr pScrn, xf86OutputPtr output) { RADEONOutputPrivatePtr radeon_output = output->driver_private; |