Forráskód Böngészése

mtd: phram: fix section mismatch for phram_setup

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>
Ryosuke Saito 13 éve
szülő
commit
b11ec57fc6
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      drivers/mtd/devices/phram.c

+ 1 - 1
drivers/mtd/devices/phram.c

@@ -215,7 +215,7 @@ static inline void kill_final_newline(char *str)
  */
  */
 static __initdata char phram_paramline[64+12+12];
 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 buf[64+12+12], *str = buf;
 	char *token[3];
 	char *token[3];