Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8129a59a authored by Scott Wood's avatar Scott Wood Committed by Kumar Gala
Browse files

[POWERPC] 83xx: mpc834x_mds: Fix whitespace and call of_platform_bus_probe().

parent 362f9b6f
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -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>
@@ -106,6 +107,22 @@ 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
 */