diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-11-13 13:17:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-02 21:56:25 -0500 |
commit | 6215762064311efea0618c9496cc6360cd75243d (patch) | |
tree | b3fcd6a2b186fe53d52eb777d754710a42b3da15 | |
parent | d65dded426e1315f5fbe3e1bc2ffe2140c69ceec (diff) |
[POWERPC] powermac: Fix warning in time.c
arch/powerpc/platforms/powermac/time.c:88: warning: 'to_rtc_time' defined but not used
This fixes the warning by making the relevant code depend on the
users.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/platforms/powermac/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powermac/time.c b/arch/powerpc/platforms/powermac/time.c index bf9da56942e8..bbbefd64ab59 100644 --- a/arch/powerpc/platforms/powermac/time.c +++ b/arch/powerpc/platforms/powermac/time.c | |||
@@ -84,12 +84,14 @@ long __init pmac_time_init(void) | |||
84 | return delta; | 84 | return delta; |
85 | } | 85 | } |
86 | 86 | ||
87 | #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) | ||
87 | static void to_rtc_time(unsigned long now, struct rtc_time *tm) | 88 | static void to_rtc_time(unsigned long now, struct rtc_time *tm) |
88 | { | 89 | { |
89 | to_tm(now, tm); | 90 | to_tm(now, tm); |
90 | tm->tm_year -= 1900; | 91 | tm->tm_year -= 1900; |
91 | tm->tm_mon -= 1; | 92 | tm->tm_mon -= 1; |
92 | } | 93 | } |
94 | #endif | ||
93 | 95 | ||
94 | static unsigned long from_rtc_time(struct rtc_time *tm) | 96 | static unsigned long from_rtc_time(struct rtc_time *tm) |
95 | { | 97 | { |