diff options
Diffstat (limited to 'include/linux/pmu.h')
-rw-r--r-- | include/linux/pmu.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h index 4c5f65392d36..cafe98d96948 100644 --- a/include/linux/pmu.h +++ b/include/linux/pmu.h | |||
@@ -147,8 +147,15 @@ extern void pmu_wait_complete(struct adb_request *req); | |||
147 | /* For use before switching interrupts off for a long time; | 147 | /* For use before switching interrupts off for a long time; |
148 | * warning: not stackable | 148 | * warning: not stackable |
149 | */ | 149 | */ |
150 | #if defined(CONFIG_ADB_PMU) | ||
150 | extern void pmu_suspend(void); | 151 | extern void pmu_suspend(void); |
151 | extern void pmu_resume(void); | 152 | extern void pmu_resume(void); |
153 | #else | ||
154 | static inline void pmu_suspend(void) | ||
155 | {} | ||
156 | static inline void pmu_resume(void) | ||
157 | {} | ||
158 | #endif | ||
152 | 159 | ||
153 | extern void pmu_enable_irled(int on); | 160 | extern void pmu_enable_irled(int on); |
154 | 161 | ||
@@ -192,7 +199,7 @@ extern unsigned int pmu_power_flags; | |||
192 | extern void pmu_backlight_init(void); | 199 | extern void pmu_backlight_init(void); |
193 | 200 | ||
194 | /* some code needs to know if the PMU was suspended for hibernation */ | 201 | /* some code needs to know if the PMU was suspended for hibernation */ |
195 | #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32) | 202 | #if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) |
196 | extern int pmu_sys_suspended; | 203 | extern int pmu_sys_suspended; |
197 | #else | 204 | #else |
198 | /* if power management is not configured it can't be suspended */ | 205 | /* if power management is not configured it can't be suspended */ |