diff options
Diffstat (limited to 'arch/arm/mach-s3c2412/mach-vstms.c')
-rw-r--r-- | arch/arm/mach-s3c2412/mach-vstms.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c2412/mach-vstms.c b/arch/arm/mach-s3c2412/mach-vstms.c index 11e8ad49fc7b..a6ba591b26bb 100644 --- a/arch/arm/mach-s3c2412/mach-vstms.c +++ b/arch/arm/mach-s3c2412/mach-vstms.c | |||
@@ -76,7 +76,7 @@ static struct s3c2410_uartcfg vstms_uartcfgs[] __initdata = { | |||
76 | } | 76 | } |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static struct mtd_partition vstms_nand_part[] = { | 79 | static struct mtd_partition __initdata vstms_nand_part[] = { |
80 | [0] = { | 80 | [0] = { |
81 | .name = "Boot Agent", | 81 | .name = "Boot Agent", |
82 | .size = 0x7C000, | 82 | .size = 0x7C000, |
@@ -99,7 +99,7 @@ static struct mtd_partition vstms_nand_part[] = { | |||
99 | }, | 99 | }, |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static struct s3c2410_nand_set vstms_nand_sets[] = { | 102 | static struct s3c2410_nand_set __initdata vstms_nand_sets[] = { |
103 | [0] = { | 103 | [0] = { |
104 | .name = "NAND", | 104 | .name = "NAND", |
105 | .nr_chips = 1, | 105 | .nr_chips = 1, |
@@ -112,7 +112,7 @@ static struct s3c2410_nand_set vstms_nand_sets[] = { | |||
112 | * chips and beyond. | 112 | * chips and beyond. |
113 | */ | 113 | */ |
114 | 114 | ||
115 | static struct s3c2410_platform_nand vstms_nand_info = { | 115 | static struct s3c2410_platform_nand __initdata vstms_nand_info = { |
116 | .tacls = 20, | 116 | .tacls = 20, |
117 | .twrph0 = 60, | 117 | .twrph0 = 60, |
118 | .twrph1 = 20, | 118 | .twrph1 = 20, |
@@ -143,8 +143,6 @@ static void __init vstms_fixup(struct machine_desc *desc, | |||
143 | 143 | ||
144 | static void __init vstms_map_io(void) | 144 | static void __init vstms_map_io(void) |
145 | { | 145 | { |
146 | s3c_device_nand.dev.platform_data = &vstms_nand_info; | ||
147 | |||
148 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); | 146 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); |
149 | s3c24xx_init_clocks(12000000); | 147 | s3c24xx_init_clocks(12000000); |
150 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); | 148 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); |
@@ -153,6 +151,8 @@ static void __init vstms_map_io(void) | |||
153 | static void __init vstms_init(void) | 151 | static void __init vstms_init(void) |
154 | { | 152 | { |
155 | s3c_i2c0_set_platdata(NULL); | 153 | s3c_i2c0_set_platdata(NULL); |
154 | s3c_nand_set_platdata(&vstms_nand_info); | ||
155 | |||
156 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); | 156 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); |
157 | } | 157 | } |
158 | 158 | ||