lkml.org 
[lkml]   [2009]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Make radeon_reinitialize_M10() absent if its reference is #ifdef'd out
Date
Make radeon_reinitialize_M10() absent if its reference is #ifdef'd out (if
CONFIG_PM=n or CONFIG_PPC_PMAC=n. Otherwise a warning is given:

CC drivers/video/aty/radeon_pm.o
drivers/video/aty/radeon_pm.c:1720: warning: 'radeon_reinitialize_M10' defined but not used

Signed-off-by: David Howells <dhowells@redhat.com>
---

drivers/video/aty/radeon_pm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c
index 97a1f09..8655bbd 100644
--- a/drivers/video/aty/radeon_pm.c
+++ b/drivers/video/aty/radeon_pm.c
@@ -1716,6 +1716,7 @@ static void radeon_pm_m10_reconfigure_mc(struct radeonfb_info *rinfo)
OUTREG(MC_IND_INDEX, 0);
}

+#if defined(CONFIG_PM) && defined(CONFIG_PPC_PMAC)
static void radeon_reinitialize_M10(struct radeonfb_info *rinfo)
{
u32 tmp, i;
@@ -1940,6 +1941,7 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo)
*/
radeon_pm_m10_enable_lvds_spread_spectrum(rinfo);
}
+#endif /* CONFIG_PM && CONFIG_PPC_PMAC */

#ifdef CONFIG_PPC_OF



\
 
 \ /
  Last update: 2009-04-14 18:03    [W:0.028 / U:13.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site