Commit a99d9a6ebdf8328d5c61ca9f1038f4815e25720e
Committed by
Paul Mackerras
1 parent
07c941d000
Exists in
master
and in
39 other branches
[POWERPC] Fix drivers/macintosh/mediabay.c when !CONFIG_ADB_PMU
When building drivers/macintosh/mediabay.c if CONFIG_ADB_PMU isn't defined we get: drivers/built-in.o: In function `media_bay_step': mediabay.c:(.text+0x92b84): undefined reference to `pmu_suspend' mediabay.c:(.text+0x92c08): undefined reference to `pmu_resume' Create empty place holders in that scenario. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
include/linux/pmu.h
... | ... | @@ -147,8 +147,15 @@ |
147 | 147 | /* For use before switching interrupts off for a long time; |
148 | 148 | * warning: not stackable |
149 | 149 | */ |
150 | +#if defined(CONFIG_ADB_PMU) | |
150 | 151 | extern void pmu_suspend(void); |
151 | 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 | 160 | extern void pmu_enable_irled(int on); |
154 | 161 |