diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-12-01 14:54:58 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-12-01 14:54:58 +0000 |
commit | 0a3813306f432e8925ff648c84bd488b840e5185 (patch) | |
tree | 42583fc92c9fc2fc73599a74b80ea1359b9c5f86 /arch/arm/mach-realview/realview_pb1176.c | |
parent | 1bbdf637baa708a2f0f46ead56c6c618b7dad7a8 (diff) | |
download | linux-0a3813306f432e8925ff648c84bd488b840e5185.tar.gz linux-0a3813306f432e8925ff648c84bd488b840e5185.tar.bz2 linux-0a3813306f432e8925ff648c84bd488b840e5185.zip |
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_pb1176.c')
-rw-r--r-- | arch/arm/mach-realview/realview_pb1176.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index a9fac653b305..0388ed06f1e5 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c @@ -222,13 +222,6 @@ static struct resource realview_pb1176_smsc911x_resources[] = { }, }; -static struct platform_device realview_pb1176_smsc911x_device = { - .name = "smc911x", - .id = 0, - .num_resources = ARRAY_SIZE(realview_pb1176_smsc911x_resources), - .resource = realview_pb1176_smsc911x_resources, -}; - static void __init gic_init_irq(void) { /* ARM1176 DevChip GIC, primary */ @@ -268,7 +261,7 @@ static void __init realview_pb1176_init(void) clk_register(&realview_clcd_clk); realview_flash_register(&realview_pb1176_flash_resource, 1); - platform_device_register(&realview_pb1176_smsc911x_device); + realview_eth_register(NULL, realview_pb1176_smsc911x_resources); for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { struct amba_device *d = amba_devs[i]; |