aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-osk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-osk.c')
-rw-r--r--arch/arm/mach-omap1/board-osk.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index ccea4f448e9a..80d862001def 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -37,6 +37,7 @@
37 37
38#include <linux/mtd/mtd.h> 38#include <linux/mtd/mtd.h>
39#include <linux/mtd/partitions.h> 39#include <linux/mtd/partitions.h>
40#include <linux/mtd/physmap.h>
40 41
41#include <linux/i2c/tps65010.h> 42#include <linux/i2c/tps65010.h>
42 43
@@ -46,8 +47,8 @@
46#include <asm/mach-types.h> 47#include <asm/mach-types.h>
47#include <asm/mach/arch.h> 48#include <asm/mach/arch.h>
48#include <asm/mach/map.h> 49#include <asm/mach/map.h>
49#include <asm/mach/flash.h>
50 50
51#include <plat/flash.h>
51#include <plat/usb.h> 52#include <plat/usb.h>
52#include <plat/mux.h> 53#include <plat/mux.h>
53#include <plat/tc.h> 54#include <plat/tc.h>
@@ -94,9 +95,9 @@ static struct mtd_partition osk_partitions[] = {
94 } 95 }
95}; 96};
96 97
97static struct flash_platform_data osk_flash_data = { 98static struct physmap_flash_data osk_flash_data = {
98 .map_name = "cfi_probe",
99 .width = 2, 99 .width = 2,
100 .set_vpp = omap1_set_vpp,
100 .parts = osk_partitions, 101 .parts = osk_partitions,
101 .nr_parts = ARRAY_SIZE(osk_partitions), 102 .nr_parts = ARRAY_SIZE(osk_partitions),
102}; 103};
@@ -107,7 +108,7 @@ static struct resource osk_flash_resource = {
107}; 108};
108 109
109static struct platform_device osk5912_flash_device = { 110static struct platform_device osk5912_flash_device = {
110 .name = "omapflash", 111 .name = "physmap-flash",
111 .id = 0, 112 .id = 0,
112 .dev = { 113 .dev = {
113 .platform_data = &osk_flash_data, 114 .platform_data = &osk_flash_data,