From: Paul Mackerras Date: Mon, 14 Nov 2005 10:56:57 +0000 (+1100) Subject: powerpc: Remove __init from a function used in suspend/resume. X-Git-Tag: v3.12-rc1~40385^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba76cd575ffd461d83507c23cf53c78d56d1ea0a;p=kernel%2Fkernel-generic.git 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: Paul Mackerras --- diff --git a/arch/powerpc/platforms/powermac/time.c b/arch/powerpc/platforms/powermac/time.c index b1714f9..feb0a94 100644 --- a/arch/powerpc/platforms/powermac/time.c +++ b/arch/powerpc/platforms/powermac/time.c @@ -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) {