diff options
| -rw-r--r-- | arch/arm/mach-vexpress/v2m.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c index ba46e8e07437..e3268152c834 100644 --- a/arch/arm/mach-vexpress/v2m.c +++ b/arch/arm/mach-vexpress/v2m.c | |||
| @@ -13,11 +13,11 @@ | |||
| 13 | #include <linux/sysdev.h> | 13 | #include <linux/sysdev.h> |
| 14 | #include <linux/usb/isp1760.h> | 14 | #include <linux/usb/isp1760.h> |
| 15 | #include <linux/clkdev.h> | 15 | #include <linux/clkdev.h> |
| 16 | #include <linux/mtd/physmap.h> | ||
| 16 | 17 | ||
| 17 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
| 18 | #include <asm/sizes.h> | 19 | #include <asm/sizes.h> |
| 19 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
| 20 | #include <asm/mach/flash.h> | ||
| 21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
| 22 | #include <asm/mach/time.h> | 22 | #include <asm/mach/time.h> |
| 23 | #include <asm/hardware/arm_timer.h> | 23 | #include <asm/hardware/arm_timer.h> |
| @@ -206,27 +206,13 @@ static struct platform_device v2m_usb_device = { | |||
| 206 | .dev.platform_data = &v2m_usb_config, | 206 | .dev.platform_data = &v2m_usb_config, |
| 207 | }; | 207 | }; |
| 208 | 208 | ||
| 209 | static int v2m_flash_init(void) | 209 | static void v2m_flash_set_vpp(struct map_info *map, int on) |
| 210 | { | ||
| 211 | writel(0, MMIO_P2V(V2M_SYS_FLASH)); | ||
| 212 | return 0; | ||
| 213 | } | ||
| 214 | |||
| 215 | static void v2m_flash_exit(void) | ||
| 216 | { | ||
| 217 | writel(0, MMIO_P2V(V2M_SYS_FLASH)); | ||
| 218 | } | ||
| 219 | |||
| 220 | static void v2m_flash_set_vpp(int on) | ||
| 221 | { | 210 | { |
| 222 | writel(on != 0, MMIO_P2V(V2M_SYS_FLASH)); | 211 | writel(on != 0, MMIO_P2V(V2M_SYS_FLASH)); |
| 223 | } | 212 | } |
| 224 | 213 | ||
| 225 | static struct flash_platform_data v2m_flash_data = { | 214 | static struct physmap_flash_data v2m_flash_data = { |
| 226 | .map_name = "cfi_probe", | ||
| 227 | .width = 4, | 215 | .width = 4, |
| 228 | .init = v2m_flash_init, | ||
| 229 | .exit = v2m_flash_exit, | ||
| 230 | .set_vpp = v2m_flash_set_vpp, | 216 | .set_vpp = v2m_flash_set_vpp, |
| 231 | }; | 217 | }; |
| 232 | 218 | ||
| @@ -243,7 +229,7 @@ static struct resource v2m_flash_resources[] = { | |||
| 243 | }; | 229 | }; |
| 244 | 230 | ||
| 245 | static struct platform_device v2m_flash_device = { | 231 | static struct platform_device v2m_flash_device = { |
| 246 | .name = "armflash", | 232 | .name = "physmap-flash", |
| 247 | .id = -1, | 233 | .id = -1, |
| 248 | .resource = v2m_flash_resources, | 234 | .resource = v2m_flash_resources, |
| 249 | .num_resources = ARRAY_SIZE(v2m_flash_resources), | 235 | .num_resources = ARRAY_SIZE(v2m_flash_resources), |
