diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-fsample.c')
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 7e70c3c08da6..096f2ed102cb 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -18,18 +18,19 @@ | |||
18 | #include <linux/mtd/mtd.h> | 18 | #include <linux/mtd/mtd.h> |
19 | #include <linux/mtd/nand.h> | 19 | #include <linux/mtd/nand.h> |
20 | #include <linux/mtd/partitions.h> | 20 | #include <linux/mtd/partitions.h> |
21 | #include <linux/mtd/physmap.h> | ||
21 | #include <linux/input.h> | 22 | #include <linux/input.h> |
22 | #include <linux/smc91x.h> | 23 | #include <linux/smc91x.h> |
23 | 24 | ||
24 | #include <mach/hardware.h> | 25 | #include <mach/hardware.h> |
25 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
26 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/flash.h> | ||
28 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
29 | 29 | ||
30 | #include <plat/tc.h> | 30 | #include <plat/tc.h> |
31 | #include <mach/gpio.h> | 31 | #include <mach/gpio.h> |
32 | #include <plat/mux.h> | 32 | #include <plat/mux.h> |
33 | #include <plat/flash.h> | ||
33 | #include <plat/fpga.h> | 34 | #include <plat/fpga.h> |
34 | #include <plat/keypad.h> | 35 | #include <plat/keypad.h> |
35 | #include <plat/common.h> | 36 | #include <plat/common.h> |
@@ -150,9 +151,9 @@ static struct mtd_partition nor_partitions[] = { | |||
150 | }, | 151 | }, |
151 | }; | 152 | }; |
152 | 153 | ||
153 | static struct flash_platform_data nor_data = { | 154 | static struct physmap_flash_data nor_data = { |
154 | .map_name = "cfi_probe", | ||
155 | .width = 2, | 155 | .width = 2, |
156 | .set_vpp = omap1_set_vpp, | ||
156 | .parts = nor_partitions, | 157 | .parts = nor_partitions, |
157 | .nr_parts = ARRAY_SIZE(nor_partitions), | 158 | .nr_parts = ARRAY_SIZE(nor_partitions), |
158 | }; | 159 | }; |
@@ -164,7 +165,7 @@ static struct resource nor_resource = { | |||
164 | }; | 165 | }; |
165 | 166 | ||
166 | static struct platform_device nor_device = { | 167 | static struct platform_device nor_device = { |
167 | .name = "omapflash", | 168 | .name = "physmap-flash", |
168 | .id = 0, | 169 | .id = 0, |
169 | .dev = { | 170 | .dev = { |
170 | .platform_data = &nor_data, | 171 | .platform_data = &nor_data, |