diff options
Diffstat (limited to 'arch/arm/mach-ebsa110')
-rw-r--r-- | arch/arm/mach-ebsa110/core.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/arch/arm/mach-ebsa110/core.c b/arch/arm/mach-ebsa110/core.c index 15261646dcdd..ed4614983adb 100644 --- a/arch/arm/mach-ebsa110/core.c +++ b/arch/arm/mach-ebsa110/core.c | |||
@@ -251,9 +251,33 @@ static struct platform_device serial_device = { | |||
251 | }, | 251 | }, |
252 | }; | 252 | }; |
253 | 253 | ||
254 | static struct resource am79c961_resources[] = { | ||
255 | { | ||
256 | .start = 0x220, | ||
257 | .end = 0x238, | ||
258 | .flags = IORESOURCE_IO, | ||
259 | }, { | ||
260 | .start = IRQ_EBSA110_ETHERNET, | ||
261 | .end = IRQ_EBSA110_ETHERNET, | ||
262 | .flags = IORESOURCE_IRQ, | ||
263 | }, | ||
264 | }; | ||
265 | |||
266 | static struct platform_device am79c961_device = { | ||
267 | .name = "am79c961", | ||
268 | .id = -1, | ||
269 | .num_resources = ARRAY_SIZE(am79c961_resources), | ||
270 | .resource = am79c961_resources, | ||
271 | }; | ||
272 | |||
273 | static struct platform_device *ebsa110_devices[] = { | ||
274 | &serial_device, | ||
275 | &am79c961_device, | ||
276 | }; | ||
277 | |||
254 | static int __init ebsa110_init(void) | 278 | static int __init ebsa110_init(void) |
255 | { | 279 | { |
256 | return platform_device_register(&serial_device); | 280 | return platform_add_devices(ebsa110_devices, ARRAY_SIZE(ebsa110_devices)); |
257 | } | 281 | } |
258 | 282 | ||
259 | arch_initcall(ebsa110_init); | 283 | arch_initcall(ebsa110_init); |