diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-10-31 12:14:57 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-31 12:14:57 -0500 |
commit | 37bb30e86bc2e48d9affb25f6ce9eb3d8e65b2ac (patch) | |
tree | d1419f0393effa0f4fd175cf0c65080e1f4626c6 /arch/arm/mach-ebsa110 | |
parent | 1be7228da280252167150346dcec4e7c50a79eb4 (diff) |
[ARM] Convert EBSA110 network driver to a platform driver
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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); |