Commit ba76cd57 authored by Paul Mackerras's avatar Paul Mackerras

powerpc: Remove __init from a function used in suspend/resume.

Suspend/resume on powermacs uses the pmac_get_boot_time function,
so it can't be marked as __init.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent a272e24c
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment