diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-02-16 12:35:13 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-16 12:35:13 -0500 |
commit | 284ed66fc3beca509a7549aae06af5c74023304c (patch) | |
tree | 16147ca13e10d4235b759d5b126c223f2f9f18c0 /arch/powerpc/platforms/512x/mpc512x_shared.c | |
parent | 724e6d3fe8003c3f60bf404bf22e4e331327c596 (diff) |
powerpc/mpc5121: avoid using arch_initcall for clock init
Move mpc5121_clk_init() call to platform init code so it won't
get called on non-5121 platforms on a multiplatform kernel.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms/512x/mpc512x_shared.c')
-rw-r--r-- | arch/powerpc/platforms/512x/mpc512x_shared.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c index 434d683df5a0..b683165a24e2 100644 --- a/arch/powerpc/platforms/512x/mpc512x_shared.c +++ b/arch/powerpc/platforms/512x/mpc512x_shared.c | |||
@@ -58,3 +58,8 @@ void __init mpc512x_declare_of_platform_devices(void) | |||
58 | "Error while probing of_platform bus\n"); | 58 | "Error while probing of_platform bus\n"); |
59 | } | 59 | } |
60 | 60 | ||
61 | void __init mpc512x_init(void) | ||
62 | { | ||
63 | mpc512x_declare_of_platform_devices(); | ||
64 | mpc5121_clk_init(); | ||
65 | } | ||