[MTD] block2mtd_paramline[] mustn't be __initdata

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 2 07:59:03 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4839f0481d8b985aabd6653ba42cf09e2abcc2bd
Commit:     4839f0481d8b985aabd6653ba42cf09e2abcc2bd
Parent:     048c37b4907ecf0e55100365e20758667f0bd27d
Author:     Adrian Bunk <bunk at stusta.de>
AuthorDate: Wed May 2 12:33:17 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed May 2 12:33:17 2007 +0100

    [MTD] block2mtd_paramline[] mustn't be __initdata
    
    block2mtd_paramline[] is used in the non-__init block2mtd_setup()
    
    Signed-off-by: Adrian Bunk <bunk at stusta.de>
    Acked-by: Joern Engel <joern at lazybastard.org>
    Cc: <stable at kernel.org>
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/devices/block2mtd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index ce47544..4070720 100644
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -375,7 +375,7 @@ static inline void kill_final_newline(char *str)
 
 #ifndef MODULE
 static int block2mtd_init_called = 0;
-static __initdata char block2mtd_paramline[80 + 12]; /* 80 for device, 12 for erase size */
+static char block2mtd_paramline[80 + 12]; /* 80 for device, 12 for erase size */
 #endif
 
 



More information about the linux-mtd-cvs mailing list