diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 10:10:44 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 10:10:44 -0500 |
commit | 336c3c2ec7e24bdf01c8f0c311ac7081b1f73d72 (patch) | |
tree | 516683b63acb2e8c5e7a6541ff2fce3496a33457 /arch/powerpc/platforms/83xx/mpc834x_itx.c | |
parent | 6624b35d6250632497c5943faa2ee2a91344d91c (diff) |
[POWERPC] 83xx: Cleaning up machine probing and board initcalls
Cleaned up the probing functionality to be more consistent across all 83xx
boards and added machine_is() protection around board initcalls to ensure they
only do something if we are actually running on that board.
Additionally, removed some dead code on mpc832x_mds.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc834x_itx.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_itx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 443a3172f37..a8f66fb3391 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -100,10 +100,9 @@ static void __init mpc834x_itx_init_IRQ(void) | |||
100 | */ | 100 | */ |
101 | static int __init mpc834x_itx_probe(void) | 101 | static int __init mpc834x_itx_probe(void) |
102 | { | 102 | { |
103 | /* We always match for now, eventually we should look at the flat | 103 | unsigned long root = of_get_flat_dt_root(); |
104 | dev tree to ensure this is the board we are suppose to run on | 104 | |
105 | */ | 105 | return of_flat_dt_is_compatible(root, "MPC834xMITX"); |
106 | return 1; | ||
107 | } | 106 | } |
108 | 107 | ||
109 | define_machine(mpc834x_itx) { | 108 | define_machine(mpc834x_itx) { |