aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-integrator/integrator_cp.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c
index 9e3ce26023e8..ec9628fe7109 100644
--- a/arch/arm/mach-integrator/integrator_cp.c
+++ b/arch/arm/mach-integrator/integrator_cp.c
@@ -22,6 +22,7 @@
22#include <linux/io.h> 22#include <linux/io.h>
23#include <linux/gfp.h> 23#include <linux/gfp.h>
24#include <linux/clkdev.h> 24#include <linux/clkdev.h>
25#include <linux/mtd/physmap.h>
25 26
26#include <mach/hardware.h> 27#include <mach/hardware.h>
27#include <mach/platform.h> 28#include <mach/platform.h>
@@ -35,7 +36,6 @@
35#include <mach/lm.h> 36#include <mach/lm.h>
36 37
37#include <asm/mach/arch.h> 38#include <asm/mach/arch.h>
38#include <asm/mach/flash.h>
39#include <asm/mach/irq.h> 39#include <asm/mach/irq.h>
40#include <asm/mach/map.h> 40#include <asm/mach/map.h>
41#include <asm/mach/time.h> 41#include <asm/mach/time.h>
@@ -239,7 +239,7 @@ static struct clk_lookup cp_lookups[] = {
239/* 239/*
240 * Flash handling. 240 * Flash handling.
241 */ 241 */
242static int intcp_flash_init(void) 242static int intcp_flash_init(struct platform_device *dev)
243{ 243{
244 u32 val; 244 u32 val;
245 245
@@ -250,7 +250,7 @@ static int intcp_flash_init(void)
250 return 0; 250 return 0;
251} 251}
252 252
253static void intcp_flash_exit(void) 253static void intcp_flash_exit(struct platform_device *dev)
254{ 254{
255 u32 val; 255 u32 val;
256 256
@@ -259,7 +259,7 @@ static void intcp_flash_exit(void)
259 writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); 259 writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG);
260} 260}
261 261
262static void intcp_flash_set_vpp(int on) 262static void intcp_flash_set_vpp(struct map_info *map, int on)
263{ 263{
264 u32 val; 264 u32 val;
265 265
@@ -271,8 +271,7 @@ static void intcp_flash_set_vpp(int on)
271 writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); 271 writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG);
272} 272}
273 273
274static struct flash_platform_data intcp_flash_data = { 274static struct physmap_flash_data intcp_flash_data = {
275 .map_name = "cfi_probe",
276 .width = 4, 275 .width = 4,
277 .init = intcp_flash_init, 276 .init = intcp_flash_init,
278 .exit = intcp_flash_exit, 277 .exit = intcp_flash_exit,
@@ -286,7 +285,7 @@ static struct resource intcp_flash_resource = {
286}; 285};
287 286
288static struct platform_device intcp_flash_device = { 287static struct platform_device intcp_flash_device = {
289 .name = "armflash", 288 .name = "physmap-flash",
290 .id = 0, 289 .id = 0,
291 .dev = { 290 .dev = {
292 .platform_data = &intcp_flash_data, 291 .platform_data = &intcp_flash_data,