sh: Use __INIT macro instead of .text.init.
authorTim Abbott <[email protected]>
Mon, 27 Apr 2009 18:02:25 +0000 (14:02 -0400)
committerLinus Torvalds <[email protected]>
Tue, 28 Apr 2009 02:51:58 +0000 (19:51 -0700)
The sh architecture has some code in the .text.init section, but it
does not reference that section in its linker scripts.

This change moves this code from the .text.init section to the
.init.text section, which is presumably where it belongs.

Signed-off-by: Tim Abbott <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Acked-by: Paul Mundt <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/sh/kernel/cpu/sh5/entry.S

index e640c63d58113046e422e30f9a1b6e6475087700..7e49cb812f8b6d16d9ec36e4814ee74c64ce0138 100644 (file)
@@ -10,6 +10,7 @@
  * for more details.
  */
 #include <linux/errno.h>
+#include <linux/init.h>
 #include <linux/sys.h>
 #include <cpu/registers.h>
 #include <asm/processor.h>
@@ -2058,10 +2059,10 @@ asm_uaccess_end:
 
 
 /*
- * --- .text.init Section
+ * --- .init.text Section
  */
 
-       .section        .text.init, "ax"
+       __INIT
 
 /*
  * void trap_init (void)