diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-02-26 23:50:22 +0300 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-02-26 23:50:22 +0300 |
commit | 4f506daf0e6c094d2f28253d4044e9adc9461142 (patch) | |
tree | ae16b7f261fefeb3e2022469e74715bea0da6557 /arch/arm/mach-s3c24xx/pm-s3c2416.c | |
parent | ea8d33ad32f9670fe55c99478e666805efc6452b (diff) | |
download | linux-4f506daf0e6c094d2f28253d4044e9adc9461142.tar.xz |
ARM: S3C24XX: fix building without PM_SLEEP
We get lots of link errors based on the assumption that
any s3c24xx kernel would enable CONFIG_PM_SLEEP if it
enables CONFIG_PM. This tries to clean that up.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Diffstat (limited to 'arch/arm/mach-s3c24xx/pm-s3c2416.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/pm-s3c2416.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c24xx/pm-s3c2416.c b/arch/arm/mach-s3c24xx/pm-s3c2416.c index 44923895f558..c0e328e37bd6 100644 --- a/arch/arm/mach-s3c24xx/pm-s3c2416.c +++ b/arch/arm/mach-s3c24xx/pm-s3c2416.c @@ -23,6 +23,7 @@ #include "s3c2412-power.h" +#ifdef CONFIG_PM_SLEEP extern void s3c2412_sleep_enter(void); static int s3c2416_cpu_suspend(unsigned long arg) @@ -70,7 +71,7 @@ static __init int s3c2416_pm_init(void) } arch_initcall(s3c2416_pm_init); - +#endif static void s3c2416_pm_resume(void) { |