diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-05-15 05:39:49 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-07-12 09:28:21 -0400 |
commit | 34f3231f435dfb8e6c83271c63461fdd2901dc97 (patch) | |
tree | dd9d3f4fffcc07c68a4cf5ef00c28a954e89f751 /arch/arm/mach-pxa/pxa27x.c | |
parent | 4adb70fc1b9b545ce6221f0cc35a8fa0eab13461 (diff) |
[ARM] pxa: move device registration into CPU-specific file
This allows individual CPU support to determine which platform
devices should be registered. Also fix a copy-n-paste bug in
the I2C power platform device entry.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 5b819e2c5563..27fd2fa56eaf 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -184,7 +184,7 @@ static struct resource pxa27x_ohci_resources[] = { | |||
184 | }, | 184 | }, |
185 | }; | 185 | }; |
186 | 186 | ||
187 | static struct platform_device ohci_device = { | 187 | static struct platform_device pxaohci_device = { |
188 | .name = "pxa27x-ohci", | 188 | .name = "pxa27x-ohci", |
189 | .id = -1, | 189 | .id = -1, |
190 | .dev = { | 190 | .dev = { |
@@ -197,11 +197,41 @@ static struct platform_device ohci_device = { | |||
197 | 197 | ||
198 | void __init pxa_set_ohci_info(struct pxaohci_platform_data *info) | 198 | void __init pxa_set_ohci_info(struct pxaohci_platform_data *info) |
199 | { | 199 | { |
200 | ohci_device.dev.platform_data = info; | 200 | pxaohci_device.dev.platform_data = info; |
201 | } | 201 | } |
202 | 202 | ||
203 | static struct resource i2c_power_resources[] = { | ||
204 | { | ||
205 | .start = 0x40f00180, | ||
206 | .end = 0x40f001a3, | ||
207 | .flags = IORESOURCE_MEM, | ||
208 | }, { | ||
209 | .start = IRQ_PWRI2C, | ||
210 | .end = IRQ_PWRI2C, | ||
211 | .flags = IORESOURCE_IRQ, | ||
212 | }, | ||
213 | }; | ||
214 | |||
215 | static struct platform_device pxai2c_power_device = { | ||
216 | .name = "pxa2xx-i2c", | ||
217 | .id = 1, | ||
218 | .resource = i2c_power_resources, | ||
219 | .num_resources = ARRAY_SIZE(i2c_power_resources), | ||
220 | }; | ||
221 | |||
203 | static struct platform_device *devices[] __initdata = { | 222 | static struct platform_device *devices[] __initdata = { |
204 | &ohci_device, | 223 | &pxamci_device, |
224 | &pxaudc_device, | ||
225 | &pxafb_device, | ||
226 | &ffuart_device, | ||
227 | &btuart_device, | ||
228 | &stuart_device, | ||
229 | &pxai2c_device, | ||
230 | &pxai2c_power_device, | ||
231 | &pxai2s_device, | ||
232 | &pxaficp_device, | ||
233 | &pxartc_device, | ||
234 | &pxaohci_device, | ||
205 | }; | 235 | }; |
206 | 236 | ||
207 | void __init pxa27x_init_irq(void) | 237 | void __init pxa27x_init_irq(void) |