diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2008-03-12 10:48:48 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-03-13 10:09:27 +1100 |
commit | a99d9a6ebdf8328d5c61ca9f1038f4815e25720e (patch) | |
tree | 1c33016cd5c5d7c8a2443fc0124c876539182cdb /include/linux/pmu.h | |
parent | 07c941d00087581c9553661c2c4fb593da37f525 (diff) | |
download | linux-a99d9a6ebdf8328d5c61ca9f1038f4815e25720e.tar.gz linux-a99d9a6ebdf8328d5c61ca9f1038f4815e25720e.tar.bz2 linux-a99d9a6ebdf8328d5c61ca9f1038f4815e25720e.zip |
[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>
Diffstat (limited to 'include/linux/pmu.h')
-rw-r--r-- | include/linux/pmu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h index b02b57c0fba0..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); /* For use before switching interrupts off for a long time; * warning: not stackable */ +#if defined(CONFIG_ADB_PMU) extern void pmu_suspend(void); extern void pmu_resume(void); +#else +static inline void pmu_suspend(void) +{} +static inline void pmu_resume(void) +{} +#endif extern void pmu_enable_irled(int on); |