Skip to content

Commit

Permalink
[POWERPC] 83xx: mpc834x_mds: Fix whitespace and call of_platform_bus_…
Browse files Browse the repository at this point in the history
…probe().

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Scott Wood authored and Kumar Gala committed Dec 14, 2007
1 parent 362f9b6 commit 8129a59
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions arch/powerpc/platforms/83xx/mpc834x_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/delay.h>
#include <linux/seq_file.h>
#include <linux/root_dev.h>
#include <linux/of_platform.h>

#include <asm/system.h>
#include <asm/atomic.h>
Expand Down Expand Up @@ -106,14 +107,30 @@ static void __init mpc834x_mds_init_IRQ(void)
ipic_set_default_priority();
}

static struct of_device_id mpc834x_ids[] = {
{ .type = "soc", },
{ .compatible = "soc", },
{},
};

static int __init mpc834x_declare_of_platform_devices(void)
{
if (!machine_is(mpc834x_mds))
return 0;

of_platform_bus_probe(NULL, mpc834x_ids, NULL);
return 0;
}
device_initcall(mpc834x_declare_of_platform_devices);

/*
* Called very early, MMU is off, device-tree isn't unflattened
*/
static int __init mpc834x_mds_probe(void)
{
unsigned long root = of_get_flat_dt_root();
unsigned long root = of_get_flat_dt_root();

return of_flat_dt_is_compatible(root, "MPC834xMDS");
return of_flat_dt_is_compatible(root, "MPC834xMDS");
}

define_machine(mpc834x_mds) {
Expand Down

0 comments on commit 8129a59

Please sign in to comment.