public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
@ 2010-01-19 11:57 Eduardo Valentin
  2010-01-19 12:01 ` Nishanth Menon
  0 siblings, 1 reply; 14+ messages in thread
From: Eduardo Valentin @ 2010-01-19 11:57 UTC (permalink / raw)
  To: ext Nishanth Menon, ext Kevin Hilman; +Cc: Linux-OMAP, Eduardo Valentin

From: Eduardo Valentin <eduardo.valentin@nokia.com>

This patch removes the compilation error when compiling
kernel with CONFIG_PM=N. The problem was that omap3_pm_init_opp_table
was not defined if CONFIG_PM=N.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
---
 arch/arm/mach-omap2/pm.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index d257225..5fc056f 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -69,7 +69,13 @@ static inline void omap3_pm_init_vc(struct prm_setup_vc *setup_vc)
  * Initialize the basic opp table here, board files could choose to modify opp
  * table after the basic initialization
  */
+#ifdef CONFIG_PM
 extern void omap3_pm_init_opp_table(void);
+#else
+static inline void omap3_pm_init_opp_table(void)
+{
+}
+#endif
 
 extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm);
 extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state);
-- 
1.6.5.7.g9ecb2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-01-19 17:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 11:57 [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table Eduardo Valentin
2010-01-19 12:01 ` Nishanth Menon
2010-01-19 13:49   ` Eduardo Valentin
2010-01-19 14:09     ` Romit Dasgupta
2010-01-19 14:32       ` Nishanth Menon
2010-01-19 14:41         ` Romit Dasgupta
2010-01-19 14:42           ` Nishanth Menon
2010-01-19 14:43             ` Romit Dasgupta
2010-01-19 14:45               ` Nishanth Menon
2010-01-19 14:50                 ` Romit Dasgupta
2010-01-19 15:15                   ` Nishanth Menon
2010-01-19 17:02                     ` Dasgupta, Romit
2010-01-19 15:35                   ` Cousson, Benoit
2010-01-19 17:00                     ` Dasgupta, Romit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox