Commit 42ddb453 authored by Thierry Reding's avatar Thierry Reding Committed by Tomi Valkeinen

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 350d72f0
...@@ -1427,6 +1427,8 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo) ...@@ -1427,6 +1427,8 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo)
mdelay( 15); mdelay( 15);
} }
#if defined(CONFIG_PM)
#if defined(CONFIG_X86) || defined(CONFIG_PPC_PMAC)
static void radeon_pm_reset_pad_ctlr_strength(struct radeonfb_info *rinfo) static void radeon_pm_reset_pad_ctlr_strength(struct radeonfb_info *rinfo)
{ {
u32 tmp, tmp2; u32 tmp, tmp2;
...@@ -1939,9 +1941,10 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo) ...@@ -1939,9 +1941,10 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo)
*/ */
radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); radeon_pm_m10_enable_lvds_spread_spectrum(rinfo);
} }
#endif
#ifdef CONFIG_PPC_OF #ifdef CONFIG_PPC_OF
#ifdef CONFIG_PPC_PMAC
static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo) static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo)
{ {
OUTREG(MC_CNTL, rinfo->save_regs[46]); OUTREG(MC_CNTL, rinfo->save_regs[46]);
...@@ -2202,6 +2205,8 @@ static void radeon_reinitialize_M9P(struct radeonfb_info *rinfo) ...@@ -2202,6 +2205,8 @@ static void radeon_reinitialize_M9P(struct radeonfb_info *rinfo)
radeon_pm_restore_pixel_pll(rinfo); radeon_pm_restore_pixel_pll(rinfo);
radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); radeon_pm_m10_enable_lvds_spread_spectrum(rinfo);
} }
#endif
#endif
#if 0 /* Not ready yet */ #if 0 /* Not ready yet */
static void radeon_reinitialize_QW(struct radeonfb_info *rinfo) static void radeon_reinitialize_QW(struct radeonfb_info *rinfo)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment