aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/realview_pba8.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-12-01 09:54:58 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2008-12-01 09:54:58 -0500
commit0a3813306f432e8925ff648c84bd488b840e5185 (patch)
tree42583fc92c9fc2fc73599a74b80ea1359b9c5f86 /arch/arm/mach-realview/realview_pba8.c
parent1bbdf637baa708a2f0f46ead56c6c618b7dad7a8 (diff)
RealView: Refactor the Ethernet device registration
This patch moves the Ethernet device registration from individual realview_*.c files to core.c. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/realview_pba8.c')
-rw-r--r--arch/arm/mach-realview/realview_pba8.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c
index 0c237e90c99..34c94435d2d 100644
--- a/arch/arm/mach-realview/realview_pba8.c
+++ b/arch/arm/mach-realview/realview_pba8.c
@@ -221,13 +221,6 @@ static struct resource realview_pba8_smsc911x_resources[] = {
221 }, 221 },
222}; 222};
223 223
224static struct platform_device realview_pba8_smsc911x_device = {
225 .name = "smc911x",
226 .id = 0,
227 .num_resources = ARRAY_SIZE(realview_pba8_smsc911x_resources),
228 .resource = realview_pba8_smsc911x_resources,
229};
230
231struct resource realview_pba8_cf_resources[] = { 224struct resource realview_pba8_cf_resources[] = {
232 [0] = { 225 [0] = {
233 .start = REALVIEW_PBA8_CF_BASE, 226 .start = REALVIEW_PBA8_CF_BASE,
@@ -281,7 +274,7 @@ static void __init realview_pba8_init(void)
281 274
282 realview_flash_register(realview_pba8_flash_resource, 275 realview_flash_register(realview_pba8_flash_resource,
283 ARRAY_SIZE(realview_pba8_flash_resource)); 276 ARRAY_SIZE(realview_pba8_flash_resource));
284 platform_device_register(&realview_pba8_smsc911x_device); 277 realview_eth_register(NULL, realview_pba8_smsc911x_resources);
285 platform_device_register(&realview_i2c_device); 278 platform_device_register(&realview_i2c_device);
286 platform_device_register(&realview_pba8_cf_device); 279 platform_device_register(&realview_pba8_cf_device);
287 280