diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-nomadik/board-nhk8815.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-nomadik/board-nhk8815.c b/arch/arm/mach-nomadik/board-nhk8815.c index 6bfd537d5afb..781b915819c8 100644 --- a/arch/arm/mach-nomadik/board-nhk8815.c +++ b/arch/arm/mach-nomadik/board-nhk8815.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/gpio.h> | 18 | #include <linux/gpio.h> |
19 | #include <linux/mtd/mtd.h> | 19 | #include <linux/mtd/mtd.h> |
20 | #include <linux/mtd/nand.h> | 20 | #include <linux/mtd/nand.h> |
21 | #include <linux/mtd/onenand.h> | ||
21 | #include <linux/mtd/partitions.h> | 22 | #include <linux/mtd/partitions.h> |
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
23 | #include <asm/sizes.h> | 24 | #include <asm/sizes.h> |
@@ -142,7 +143,7 @@ static struct mtd_partition nhk8815_onenand_partitions[] = { | |||
142 | } | 143 | } |
143 | }; | 144 | }; |
144 | 145 | ||
145 | static struct flash_platform_data nhk8815_onenand_data = { | 146 | static struct onenand_platform_data nhk8815_onenand_data = { |
146 | .parts = nhk8815_onenand_partitions, | 147 | .parts = nhk8815_onenand_partitions, |
147 | .nr_parts = ARRAY_SIZE(nhk8815_onenand_partitions), | 148 | .nr_parts = ARRAY_SIZE(nhk8815_onenand_partitions), |
148 | }; | 149 | }; |
@@ -156,7 +157,7 @@ static struct resource nhk8815_onenand_resource[] = { | |||
156 | }; | 157 | }; |
157 | 158 | ||
158 | static struct platform_device nhk8815_onenand_device = { | 159 | static struct platform_device nhk8815_onenand_device = { |
159 | .name = "onenand", | 160 | .name = "onenand-flash", |
160 | .id = -1, | 161 | .id = -1, |
161 | .dev = { | 162 | .dev = { |
162 | .platform_data = &nhk8815_onenand_data, | 163 | .platform_data = &nhk8815_onenand_data, |
@@ -167,10 +168,10 @@ static struct platform_device nhk8815_onenand_device = { | |||
167 | 168 | ||
168 | static void __init nhk8815_onenand_init(void) | 169 | static void __init nhk8815_onenand_init(void) |
169 | { | 170 | { |
170 | #ifdef CONFIG_ONENAND | 171 | #ifdef CONFIG_MTD_ONENAND |
171 | /* Set up SMCS0 for OneNand */ | 172 | /* Set up SMCS0 for OneNand */ |
172 | writel(0x000030db, FSMC_BCR0); | 173 | writel(0x000030db, FSMC_BCR(0)); |
173 | writel(0x02100551, FSMC_BTR0); | 174 | writel(0x02100551, FSMC_BTR(0)); |
174 | #endif | 175 | #endif |
175 | } | 176 | } |
176 | 177 | ||