Skip to content

Commit

Permalink
mtd: phram: fix section mismatch for phram_setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ryosuke Saito authored and David Woodhouse committed Mar 27, 2012
1 parent 3b27dac commit b11ec57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/phram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b11ec57

Please sign in to comment.