diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2010-02-15 13:03:32 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 13:03:32 -0500 |
commit | 561b036ad9d0b4f0cd311d2e38025919c2cb437f (patch) | |
tree | 15c141467fe33e879a539b418e3131dd6d0910b1 /arch/arm/mach-omap2/board-h4.c | |
parent | fd17a25fe9423bbde16a326466330ad486321dfc (diff) |
omap: convert boards to use physmap-flash
Convert OMAP based boards to use physmap-flash. Refreshed against today's
Linux omap kernel tree
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 5c49c407dd51..0665f2c8dc8e 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/mtd/mtd.h> | 17 | #include <linux/mtd/mtd.h> |
18 | #include <linux/mtd/partitions.h> | 18 | #include <linux/mtd/partitions.h> |
19 | #include <linux/mtd/physmap.h> | ||
19 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
20 | #include <linux/workqueue.h> | 21 | #include <linux/workqueue.h> |
21 | #include <linux/i2c.h> | 22 | #include <linux/i2c.h> |
@@ -29,7 +30,6 @@ | |||
29 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
30 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
32 | #include <asm/mach/flash.h> | ||
33 | 33 | ||
34 | #include <plat/control.h> | 34 | #include <plat/control.h> |
35 | #include <mach/gpio.h> | 35 | #include <mach/gpio.h> |
@@ -115,8 +115,7 @@ static struct mtd_partition h4_partitions[] = { | |||
115 | } | 115 | } |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static struct flash_platform_data h4_flash_data = { | 118 | static struct physmap_flash_data h4_flash_data = { |
119 | .map_name = "cfi_probe", | ||
120 | .width = 2, | 119 | .width = 2, |
121 | .parts = h4_partitions, | 120 | .parts = h4_partitions, |
122 | .nr_parts = ARRAY_SIZE(h4_partitions), | 121 | .nr_parts = ARRAY_SIZE(h4_partitions), |
@@ -127,7 +126,7 @@ static struct resource h4_flash_resource = { | |||
127 | }; | 126 | }; |
128 | 127 | ||
129 | static struct platform_device h4_flash_device = { | 128 | static struct platform_device h4_flash_device = { |
130 | .name = "omapflash", | 129 | .name = "physmap-flash", |
131 | .id = 0, | 130 | .id = 0, |
132 | .dev = { | 131 | .dev = { |
133 | .platform_data = &h4_flash_data, | 132 | .platform_data = &h4_flash_data, |