Skip to content

Commit

Permalink
[POWERPC] powermac: Fix warning in time.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Paul Mackerras committed Dec 3, 2007
1 parent d65dded commit 6215762
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/powermac/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ long __init pmac_time_init(void)
return delta;
}

#if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU)
static void to_rtc_time(unsigned long now, struct rtc_time *tm)
{
to_tm(now, tm);
tm->tm_year -= 1900;
tm->tm_mon -= 1;
}
#endif

static unsigned long from_rtc_time(struct rtc_time *tm)
{
Expand Down

0 comments on commit 6215762

Please sign in to comment.