mtd: phram: fix section mismatch for phram_setup
authorRyosuke Saito <raitosyo@gmail.com>
Wed, 21 Mar 2012 09:47:47 +0000 (18:47 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 27 Mar 2012 00:02:29 +0000 (01:02 +0100)
phram_setup() is only called from init_phram() which is in .init.text,
so it must be in the same section to avoid a section mismatch warning.

Signed-off-by: Ryosuke Saito <raitosyo@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/phram.c

index 3d91ace1ee4c9e1c294f7b597e7449ae7af6c0da..67823de68db69e7f2ae80d378ed7b9289eb811e0 100644 (file)
@@ -215,7 +215,7 @@ static inline void kill_final_newline(char *str)
  */
 static __initdata char phram_paramline[64+12+12];
 
-static int phram_setup(const char *val)
+static int __init phram_setup(const char *val)
 {
        char buf[64+12+12], *str = buf;
        char *token[3];
This page took 0.048015 seconds and 5 git commands to generate.