diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 09:10:44 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 09:10:44 -0600 |
commit | 336c3c2ec7e24bdf01c8f0c311ac7081b1f73d72 (patch) | |
tree | 516683b63acb2e8c5e7a6541ff2fce3496a33457 /arch/powerpc/platforms/83xx/mpc834x_itx.c | |
parent | 6624b35d6250632497c5943faa2ee2a91344d91c (diff) | |
download | lwn-336c3c2ec7e24bdf01c8f0c311ac7081b1f73d72.tar.gz lwn-336c3c2ec7e24bdf01c8f0c311ac7081b1f73d72.zip |
[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 443a3172f370..a8f66fb3391a 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) */ static int __init mpc834x_itx_probe(void) { - /* We always match for now, eventually we should look at the flat - dev tree to ensure this is the board we are suppose to run on - */ - return 1; + unsigned long root = of_get_flat_dt_root(); + + return of_flat_dt_is_compatible(root, "MPC834xMITX"); } define_machine(mpc834x_itx) { |