aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/phram.c
diff options
context:
space:
mode:
authorRyosuke Saito <raitosyo@gmail.com>2012-03-21 05:47:47 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-26 20:02:29 -0400
commitb11ec57fc6e6d4882ef01a0c09a1dde58f50492e (patch)
tree554176bdb3ce0111c102f871ef035841e329a35d /drivers/mtd/devices/phram.c
parent3b27dac03972c10980ec5480ad8425fc95aae9ad (diff)
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>
Diffstat (limited to 'drivers/mtd/devices/phram.c')
-rw-r--r--drivers/mtd/devices/phram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index 3d91ace1ee4c..67823de68db6 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -215,7 +215,7 @@ static inline void kill_final_newline(char *str)
215 */ 215 */
216static __initdata char phram_paramline[64+12+12]; 216static __initdata char phram_paramline[64+12+12];
217 217
218static int phram_setup(const char *val) 218static int __init phram_setup(const char *val)
219{ 219{
220 char buf[64+12+12], *str = buf; 220 char buf[64+12+12], *str = buf;
221 char *token[3]; 221 char *token[3];