From 8d32830d508ae0c79df4c40c6970b6221fa1c4fa Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Wed, 18 May 2011 10:51:51 +0100 Subject: [PATCH] --- yaml --- r: 249929 b: refs/heads/master c: 0f71fd492d99a005db7d0050a5ce8a733ffc2a1e h: refs/heads/master i: 249927: ed41fbcf95e381b5f4d6f86b1c70812b66ae6dd0 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-vexpress/v2m.c | 22 ++++------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/[refs] b/[refs] index 5e9cd61bd4ee..cc956e65ee70 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 68c0e38cafa0f24866ec8605431f7f666cae1304 +refs/heads/master: 0f71fd492d99a005db7d0050a5ce8a733ffc2a1e diff --git a/trunk/arch/arm/mach-vexpress/v2m.c b/trunk/arch/arm/mach-vexpress/v2m.c index ba46e8e07437..e3268152c834 100644 --- a/trunk/arch/arm/mach-vexpress/v2m.c +++ b/trunk/arch/arm/mach-vexpress/v2m.c @@ -13,11 +13,11 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -206,27 +206,13 @@ static struct platform_device v2m_usb_device = { .dev.platform_data = &v2m_usb_config, }; -static int v2m_flash_init(void) -{ - writel(0, MMIO_P2V(V2M_SYS_FLASH)); - return 0; -} - -static void v2m_flash_exit(void) -{ - writel(0, MMIO_P2V(V2M_SYS_FLASH)); -} - -static void v2m_flash_set_vpp(int on) +static void v2m_flash_set_vpp(struct map_info *map, int on) { writel(on != 0, MMIO_P2V(V2M_SYS_FLASH)); } -static struct flash_platform_data v2m_flash_data = { - .map_name = "cfi_probe", +static struct physmap_flash_data v2m_flash_data = { .width = 4, - .init = v2m_flash_init, - .exit = v2m_flash_exit, .set_vpp = v2m_flash_set_vpp, }; @@ -243,7 +229,7 @@ static struct resource v2m_flash_resources[] = { }; static struct platform_device v2m_flash_device = { - .name = "armflash", + .name = "physmap-flash", .id = -1, .resource = v2m_flash_resources, .num_resources = ARRAY_SIZE(v2m_flash_resources),