diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 16:19:34 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-17 16:19:34 -0600 |
commit | 6936c62571d8dc580725775b628ee73d2ac97b6f (patch) | |
tree | 51af92ace6bf63ad3b2633847d851e730f509d4a /arch/powerpc/platforms/85xx/mpc85xx_ads.c | |
parent | 520948796335111cf91970efabca7e5d064db344 (diff) | |
download | blackbird-op-linux-6936c62571d8dc580725775b628ee73d2ac97b6f.tar.gz blackbird-op-linux-6936c62571d8dc580725775b628ee73d2ac97b6f.zip |
[POWERPC] 85xx: Cleaning up machine probing
Cleaned up the probing functionality to be more consistent across all 85xx
boards and actually check to see if we should be running on a given board.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_ads.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ads.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index 741bcea8f991..8ed034aeca5f 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c @@ -272,10 +272,9 @@ static void mpc85xx_ads_show_cpuinfo(struct seq_file *m) */ static int __init mpc85xx_ads_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, "MPC85xxADS"); } define_machine(mpc85xx_ads) { |