aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-09-18 08:48:32 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 05:14:26 -0400
commit42ddb453a0cd07569e728dbf3e9109cf3ae03e26 (patch)
tree018328eafc0cea59721eb75baf59670c3048174f
parent350d72f0edd8bbc56d3018112316e1f05a273a20 (diff)
radeon: Conditionally compile PM code
The power management code is only used on X86 and PowerMac. To prevent the compiler from warning about unused code, only build when PM and one of X86 or PowerMac is selected. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/aty/radeon_pm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c
index f2662247363e..46a12f1a93c3 100644
--- a/drivers/video/aty/radeon_pm.c
+++ b/drivers/video/aty/radeon_pm.c
@@ -1427,6 +1427,8 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo)
1427 mdelay( 15); 1427 mdelay( 15);
1428} 1428}
1429 1429
1430#if defined(CONFIG_PM)
1431#if defined(CONFIG_X86) || defined(CONFIG_PPC_PMAC)
1430static void radeon_pm_reset_pad_ctlr_strength(struct radeonfb_info *rinfo) 1432static void radeon_pm_reset_pad_ctlr_strength(struct radeonfb_info *rinfo)
1431{ 1433{
1432 u32 tmp, tmp2; 1434 u32 tmp, tmp2;
@@ -1939,9 +1941,10 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo)
1939 */ 1941 */
1940 radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); 1942 radeon_pm_m10_enable_lvds_spread_spectrum(rinfo);
1941} 1943}
1944#endif
1942 1945
1943#ifdef CONFIG_PPC_OF 1946#ifdef CONFIG_PPC_OF
1944 1947#ifdef CONFIG_PPC_PMAC
1945static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo) 1948static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo)
1946{ 1949{
1947 OUTREG(MC_CNTL, rinfo->save_regs[46]); 1950 OUTREG(MC_CNTL, rinfo->save_regs[46]);
@@ -2202,6 +2205,8 @@ static void radeon_reinitialize_M9P(struct radeonfb_info *rinfo)
2202 radeon_pm_restore_pixel_pll(rinfo); 2205 radeon_pm_restore_pixel_pll(rinfo);
2203 radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); 2206 radeon_pm_m10_enable_lvds_spread_spectrum(rinfo);
2204} 2207}
2208#endif
2209#endif
2205 2210
2206#if 0 /* Not ready yet */ 2211#if 0 /* Not ready yet */
2207static void radeon_reinitialize_QW(struct radeonfb_info *rinfo) 2212static void radeon_reinitialize_QW(struct radeonfb_info *rinfo)