aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-02-26 15:50:22 -0500
committerKukjin Kim <kgene@kernel.org>2015-02-26 15:50:22 -0500
commit484c213b106c2b9188744666693d57bb9fd5affe (patch)
tree653e7f0e0b28273c2570ae448e510f6d4e061013
parent261592e6b804c288d2010e98ee100548dbe91c06 (diff)
ARM: S3C64XX: fix building without CONFIG_PM_SLEEP
arch/arm/mach-s3c64xx/built-in.o: In function `s3c_pm_restore_core': :(.text+0x5d0): undefined reference to `s3c_pm_do_restore_core' :(.text+0x5d4): undefined reference to `s3c_pm_do_restore' arch/arm/mach-s3c64xx/built-in.o: In function `s3c_pm_save_core': :(.text+0x60c): undefined reference to `s3c_pm_do_save' arch/arm/mach-s3c64xx/built-in.o: In function `s3c64xx_irq_pm_resume': :(.text+0x670): undefined reference to `s3c_pm_do_restore' arch/arm/mach-s3c64xx/built-in.o: In function `s3c64xx_irq_pm_suspend': :(.text+0x6d8): undefined reference to `s3c_pm_do_save' arch/arm/mach-s3c64xx/built-in.o: In function `s3c_cpu_resume': :(.text+0x71c): undefined reference to `cpu_resume' Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kukjin Kim <kgene@kernel.org>
-rw-r--r--arch/arm/mach-s3c64xx/Makefile3
-rw-r--r--arch/arm/mach-s3c64xx/pm.c2
-rw-r--r--arch/arm/plat-samsung/include/plat/pm.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile
index 12f67b61ca5f..17f4b07ec763 100644
--- a/arch/arm/mach-s3c64xx/Makefile
+++ b/arch/arm/mach-s3c64xx/Makefile
@@ -16,7 +16,8 @@ obj-$(CONFIG_CPU_S3C6410) += s3c6410.o
16 16
17# PM 17# PM
18 18
19obj-$(CONFIG_PM) += pm.o irq-pm.o sleep.o 19obj-$(CONFIG_PM) += pm.o
20obj-$(CONFIG_PM_SLEEP) += irq-pm.o sleep.o
20obj-$(CONFIG_CPU_IDLE) += cpuidle.o 21obj-$(CONFIG_CPU_IDLE) += cpuidle.o
21 22
22# DMA support 23# DMA support
diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c
index aaf7bea4032f..75b14e756383 100644
--- a/arch/arm/mach-s3c64xx/pm.c
+++ b/arch/arm/mach-s3c64xx/pm.c
@@ -194,6 +194,7 @@ void s3c_pm_debug_smdkled(u32 set, u32 clear)
194} 194}
195#endif 195#endif
196 196
197#ifdef CONFIG_PM_SLEEP
197static struct sleep_save core_save[] = { 198static struct sleep_save core_save[] = {
198 SAVE_ITEM(S3C64XX_MEM0DRVCON), 199 SAVE_ITEM(S3C64XX_MEM0DRVCON),
199 SAVE_ITEM(S3C64XX_MEM1DRVCON), 200 SAVE_ITEM(S3C64XX_MEM1DRVCON),
@@ -238,6 +239,7 @@ void s3c_pm_save_core(void)
238 s3c_pm_do_save(misc_save, ARRAY_SIZE(misc_save)); 239 s3c_pm_do_save(misc_save, ARRAY_SIZE(misc_save));
239 s3c_pm_do_save(core_save, ARRAY_SIZE(core_save)); 240 s3c_pm_do_save(core_save, ARRAY_SIZE(core_save));
240} 241}
242#endif
241 243
242/* since both s3c6400 and s3c6410 share the same sleep pm calls, we 244/* since both s3c6400 and s3c6410 share the same sleep pm calls, we
243 * put the per-cpu code in here until any new cpu comes along and changes 245 * put the per-cpu code in here until any new cpu comes along and changes
diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h
index e17d871b934c..e5a046dc22f5 100644
--- a/arch/arm/plat-samsung/include/plat/pm.h
+++ b/arch/arm/plat-samsung/include/plat/pm.h
@@ -58,7 +58,7 @@ extern unsigned long s3c_pm_flags;
58 58
59extern int s3c2410_cpu_suspend(unsigned long); 59extern int s3c2410_cpu_suspend(unsigned long);
60 60
61#ifdef CONFIG_SAMSUNG_PM 61#ifdef CONFIG_PM_SLEEP
62extern int s3c_irq_wake(struct irq_data *data, unsigned int state); 62extern int s3c_irq_wake(struct irq_data *data, unsigned int state);
63extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); 63extern int s3c_irqext_wake(struct irq_data *data, unsigned int state);
64extern void s3c_cpu_resume(void); 64extern void s3c_cpu_resume(void);