Преглед на файлове

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 <paulus@samba.org>
Paul Mackerras преди 20 години
родител
ревизия
ba76cd575f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      arch/powerpc/platforms/powermac/time.c

+ 2 - 1
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
 #define smu_set_rtc_time(tm, spin)	0
 #endif
 #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 */
 	/* Get the time from the RTC, used only at boot time */
 	switch (sys_ctrler) {
 	switch (sys_ctrler) {