Commit b11ec57f authored by Ryosuke Saito's avatar Ryosuke Saito Committed by David Woodhouse

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: default avatarRyosuke Saito <raitosyo@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 3b27dac0
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment