Skip to content

Commit

Permalink
powerpc: Remove __init from a function used in suspend/resume.
Browse files Browse the repository at this point in the history
Suspend/resume on powermacs uses the pmac_get_boot_time function,
so it can't be marked as __init.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Nov 15, 2005
1 parent a272e24 commit ba76cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/platforms/powermac/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ static unsigned long smu_get_time(void)
#define smu_set_rtc_time(tm, spin) 0
#endif

unsigned long __init pmac_get_boot_time(void)
/* Can't be __init, it's called when suspending and resuming */
unsigned long pmac_get_boot_time(void)
{
/* Get the time from the RTC, used only at boot time */
switch (sys_ctrler) {
Expand Down

0 comments on commit ba76cd5

Please sign in to comment.