diff options
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/pm.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/pm.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h index e17d871b934c..7f415ce74591 100644 --- a/arch/arm/plat-samsung/include/plat/pm.h +++ b/arch/arm/plat-samsung/include/plat/pm.h | |||
@@ -43,7 +43,11 @@ extern unsigned long s3c_irqwake_eintmask; | |||
43 | 43 | ||
44 | /* IRQ masks for IRQs allowed to go to sleep (see irq.c) */ | 44 | /* IRQ masks for IRQs allowed to go to sleep (see irq.c) */ |
45 | extern unsigned long s3c_irqwake_intallow; | 45 | extern unsigned long s3c_irqwake_intallow; |
46 | #ifdef CONFIG_PM_SLEEP | ||
46 | extern unsigned long s3c_irqwake_eintallow; | 47 | extern unsigned long s3c_irqwake_eintallow; |
48 | #else | ||
49 | #define s3c_irqwake_eintallow 0 | ||
50 | #endif | ||
47 | 51 | ||
48 | /* per-cpu sleep functions */ | 52 | /* per-cpu sleep functions */ |
49 | 53 | ||
@@ -58,16 +62,20 @@ extern unsigned long s3c_pm_flags; | |||
58 | 62 | ||
59 | extern int s3c2410_cpu_suspend(unsigned long); | 63 | extern int s3c2410_cpu_suspend(unsigned long); |
60 | 64 | ||
61 | #ifdef CONFIG_SAMSUNG_PM | 65 | #ifdef CONFIG_PM_SLEEP |
62 | extern int s3c_irq_wake(struct irq_data *data, unsigned int state); | 66 | extern int s3c_irq_wake(struct irq_data *data, unsigned int state); |
63 | extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); | ||
64 | extern void s3c_cpu_resume(void); | 67 | extern void s3c_cpu_resume(void); |
65 | #else | 68 | #else |
66 | #define s3c_irq_wake NULL | 69 | #define s3c_irq_wake NULL |
67 | #define s3c_irqext_wake NULL | ||
68 | #define s3c_cpu_resume NULL | 70 | #define s3c_cpu_resume NULL |
69 | #endif | 71 | #endif |
70 | 72 | ||
73 | #ifdef CONFIG_SAMSUNG_PM | ||
74 | extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); | ||
75 | #else | ||
76 | #define s3c_irqext_wake NULL | ||
77 | #endif | ||
78 | |||
71 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK | 79 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK |
72 | /** | 80 | /** |
73 | * s3c_pm_debug_smdkled() - Debug PM suspend/resume via SMDK Board LEDs | 81 | * s3c_pm_debug_smdkled() - Debug PM suspend/resume via SMDK Board LEDs |