]> err.no Git - linux-2.6/commitdiff
[PATCH] ARM: 2711/1: fix compilation on PXA targets with CONFIG_PM=n
authorNicolas Pitre <nico@org.rmk.(none)>
Mon, 13 Jun 2005 21:35:41 +0000 (22:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Jun 2005 21:35:41 +0000 (22:35 +0100)
Patch from Nicolas Pitre

Signed-off-by: Nicolas Pitre
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pxa25x.c
arch/arm/mach-pxa/pxa27x.c

index b6d945a6e77488e4b957e5c7155a3db2dd1fd2ce..7869c3b4e62f0447eee5737dc855b0b99afe5d10 100644 (file)
@@ -16,6 +16,7 @@
  * initialization stuff for PXA machines which can be overridden later if
  * need be.
  */
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
@@ -103,6 +104,7 @@ unsigned int get_lcdclk_frequency_10khz(void)
 
 EXPORT_SYMBOL(get_lcdclk_frequency_10khz);
 
+#ifdef CONFIG_PM
 
 int pxa_cpu_pm_prepare(suspend_state_t state)
 {
@@ -131,3 +133,5 @@ void pxa_cpu_pm_enter(suspend_state_t state)
                break;
        }
 }
+
+#endif
index aa3c3b2ab75e79e38ad57c25b2b87fd9a6a5c5bb..893964fb9659bbabed5ed818377f430315915ef2 100644 (file)
@@ -120,6 +120,8 @@ EXPORT_SYMBOL(get_clk_frequency_khz);
 EXPORT_SYMBOL(get_memclk_frequency_10khz);
 EXPORT_SYMBOL(get_lcdclk_frequency_10khz);
 
+#ifdef CONFIG_PM
+
 int pxa_cpu_pm_prepare(suspend_state_t state)
 {
        switch (state) {
@@ -153,6 +155,8 @@ void pxa_cpu_pm_enter(suspend_state_t state)
        }
 }
 
+#endif
+
 /*
  * device registration specific to PXA27x.
  */