diff options
Diffstat (limited to 'arch/arm/mach-realview/core.c')
-rw-r--r-- | arch/arm/mach-realview/core.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 98aefc9f4df..f3cf5712091 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -109,22 +109,21 @@ static struct flash_platform_data realview_flash_data = { | |||
109 | .set_vpp = realview_flash_set_vpp, | 109 | .set_vpp = realview_flash_set_vpp, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static struct resource realview_flash_resource = { | ||
113 | .start = REALVIEW_FLASH_BASE, | ||
114 | .end = REALVIEW_FLASH_BASE + REALVIEW_FLASH_SIZE, | ||
115 | .flags = IORESOURCE_MEM, | ||
116 | }; | ||
117 | |||
118 | struct platform_device realview_flash_device = { | 112 | struct platform_device realview_flash_device = { |
119 | .name = "armflash", | 113 | .name = "armflash", |
120 | .id = 0, | 114 | .id = 0, |
121 | .dev = { | 115 | .dev = { |
122 | .platform_data = &realview_flash_data, | 116 | .platform_data = &realview_flash_data, |
123 | }, | 117 | }, |
124 | .num_resources = 1, | ||
125 | .resource = &realview_flash_resource, | ||
126 | }; | 118 | }; |
127 | 119 | ||
120 | int realview_flash_register(struct resource *res, u32 num) | ||
121 | { | ||
122 | realview_flash_device.resource = res; | ||
123 | realview_flash_device.num_resources = num; | ||
124 | return platform_device_register(&realview_flash_device); | ||
125 | } | ||
126 | |||
128 | static struct resource realview_i2c_resource = { | 127 | static struct resource realview_i2c_resource = { |
129 | .start = REALVIEW_I2C_BASE, | 128 | .start = REALVIEW_I2C_BASE, |
130 | .end = REALVIEW_I2C_BASE + SZ_4K - 1, | 129 | .end = REALVIEW_I2C_BASE + SZ_4K - 1, |