From: Tony Breeds Date: Tue, 11 Mar 2008 23:48:48 +0000 (+1100) Subject: [POWERPC] Fix drivers/macintosh/mediabay.c when !CONFIG_ADB_PMU X-Git-Tag: v2.6.25-rc6~30^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a99d9a6ebdf8328d5c61ca9f1038f4815e25720e;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Paul Mackerras --- diff --git a/include/linux/pmu.h b/include/linux/pmu.h index b02b57c0fba..cafe98d9694 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);