summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBrent Taylor <motobud@gmail.com>2013-11-24 19:02:35 +0100
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-12-02 14:24:40 +0100
commit7093bf2b7195541281cb711e31c027a8d826c6df (patch)
tree4ac74cc6c1ec12007c86878fb77e5166f55630fe /arch/arm
parentARM: at91: add usart3 alias to dtsi (diff)
downloadlinux-7093bf2b7195541281cb711e31c027a8d826c6df.tar.xz
linux-7093bf2b7195541281cb711e31c027a8d826c6df.zip
ARM: at91: fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM
If CONFIG_PM is not defined, then arch/arm/mach-at91/pm.c is not compiled in. This patch creates an inline function that does nothing if CONFIG_PM is not defined. Signed-off-by: Brent Taylor <motobud@gmail.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-at91/pm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h
index 3ed190ce062b..c5101dcb4fb0 100644
--- a/arch/arm/mach-at91/pm.h
+++ b/arch/arm/mach-at91/pm.h
@@ -16,7 +16,11 @@
#include <mach/at91_ramc.h>
#include <mach/at91rm9200_sdramc.h>
+#ifdef CONFIG_PM
extern void at91_pm_set_standby(void (*at91_standby)(void));
+#else
+static inline void at91_pm_set_standby(void (*at91_standby)(void)) { }
+#endif
/*
* The AT91RM9200 goes into self-refresh mode with this command, and will