diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-sx1.c')
-rw-r--r-- | arch/arm/mach-omap1/board-sx1.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index 7a97fac83d8d..2fb1e5f8e2ec 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/notifier.h> | 22 | #include <linux/notifier.h> |
23 | #include <linux/mtd/mtd.h> | 23 | #include <linux/mtd/mtd.h> |
24 | #include <linux/mtd/partitions.h> | 24 | #include <linux/mtd/partitions.h> |
25 | #include <linux/mtd/physmap.h> | ||
25 | #include <linux/types.h> | 26 | #include <linux/types.h> |
26 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
27 | #include <linux/errno.h> | 28 | #include <linux/errno.h> |
@@ -29,10 +30,10 @@ | |||
29 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
30 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/flash.h> | ||
33 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
34 | 34 | ||
35 | #include <mach/gpio.h> | 35 | #include <mach/gpio.h> |
36 | #include <plat/flash.h> | ||
36 | #include <plat/mux.h> | 37 | #include <plat/mux.h> |
37 | #include <plat/dma.h> | 38 | #include <plat/dma.h> |
38 | #include <plat/irda.h> | 39 | #include <plat/irda.h> |
@@ -287,9 +288,9 @@ static struct mtd_partition sx1_partitions[] = { | |||
287 | } | 288 | } |
288 | }; | 289 | }; |
289 | 290 | ||
290 | static struct flash_platform_data sx1_flash_data = { | 291 | static struct physmap_flash_data sx1_flash_data = { |
291 | .map_name = "cfi_probe", | ||
292 | .width = 2, | 292 | .width = 2, |
293 | .set_vpp = omap1_set_vpp, | ||
293 | .parts = sx1_partitions, | 294 | .parts = sx1_partitions, |
294 | .nr_parts = ARRAY_SIZE(sx1_partitions), | 295 | .nr_parts = ARRAY_SIZE(sx1_partitions), |
295 | }; | 296 | }; |
@@ -310,7 +311,7 @@ static struct resource sx1_old_flash_resource[] = { | |||
310 | }; | 311 | }; |
311 | 312 | ||
312 | static struct platform_device sx1_flash_device = { | 313 | static struct platform_device sx1_flash_device = { |
313 | .name = "omapflash", | 314 | .name = "physmap-flash", |
314 | .id = 0, | 315 | .id = 0, |
315 | .dev = { | 316 | .dev = { |
316 | .platform_data = &sx1_flash_data, | 317 | .platform_data = &sx1_flash_data, |
@@ -327,7 +328,7 @@ static struct resource sx1_new_flash_resource = { | |||
327 | }; | 328 | }; |
328 | 329 | ||
329 | static struct platform_device sx1_flash_device = { | 330 | static struct platform_device sx1_flash_device = { |
330 | .name = "omapflash", | 331 | .name = "physmap-flash", |
331 | .id = 0, | 332 | .id = 0, |
332 | .dev = { | 333 | .dev = { |
333 | .platform_data = &sx1_flash_data, | 334 | .platform_data = &sx1_flash_data, |