aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-02-26 22:55:59 -0500
committerNicolas Pitre <nico@cam.org>2009-02-26 22:55:59 -0500
commit5b99d5348304a32dfca92238d27ac4de2b365175 (patch)
tree86a7a25488a698f6b8ba97f7ef7b70691d933a4b /arch/arm/mach-kirkwood/common.c
parent249cbfa3f5a95d022941af0febbffce5d6609e46 (diff)
[ARM] Kirkwood: register internal devices in a common place
The RTC and the two XOR engines are internal to the chip, and therefore always available since they don't depend on a particular board layout. Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r--arch/arm/mach-kirkwood/common.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index e5076aae1c6b..9f012551794d 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -255,7 +255,7 @@ static struct resource kirkwood_rtc_resource = {
255 .flags = IORESOURCE_MEM, 255 .flags = IORESOURCE_MEM,
256}; 256};
257 257
258void __init kirkwood_rtc_init(void) 258static void __init kirkwood_rtc_init(void)
259{ 259{
260 platform_device_register_simple("rtc-mv", -1, &kirkwood_rtc_resource, 1); 260 platform_device_register_simple("rtc-mv", -1, &kirkwood_rtc_resource, 1);
261} 261}
@@ -547,7 +547,7 @@ static struct platform_device kirkwood_xor01_channel = {
547 }, 547 },
548}; 548};
549 549
550void __init kirkwood_xor0_init(void) 550static void __init kirkwood_xor0_init(void)
551{ 551{
552 platform_device_register(&kirkwood_xor0_shared); 552 platform_device_register(&kirkwood_xor0_shared);
553 553
@@ -645,7 +645,7 @@ static struct platform_device kirkwood_xor11_channel = {
645 }, 645 },
646}; 646};
647 647
648void __init kirkwood_xor1_init(void) 648static void __init kirkwood_xor1_init(void)
649{ 649{
650 platform_device_register(&kirkwood_xor1_shared); 650 platform_device_register(&kirkwood_xor1_shared);
651 651
@@ -753,4 +753,9 @@ void __init kirkwood_init(void)
753#ifdef CONFIG_CACHE_FEROCEON_L2 753#ifdef CONFIG_CACHE_FEROCEON_L2
754 kirkwood_l2_init(); 754 kirkwood_l2_init();
755#endif 755#endif
756
757 /* internal devices that every board has */
758 kirkwood_rtc_init();
759 kirkwood_xor0_init();
760 kirkwood_xor1_init();
756} 761}