summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-01-17 16:37:51 -0600
committerKumar Gala <galak@kernel.crashing.org>2008-01-23 19:34:46 -0600
commitff5ac76088cd317b6f534cbb774b92b26e508b34 (patch)
tree657e686211f4314a6f463ed142f8c306e08e56d0 /arch/powerpc/platforms/83xx
parent0dde1a1df9ab0615ed08558fb7144e7739e9f565 (diff)
downloadop-kernel-dev-ff5ac76088cd317b6f534cbb774b92b26e508b34.zip
op-kernel-dev-ff5ac76088cd317b6f534cbb774b92b26e508b34.tar.gz
[POWERPC] 83xx: MPC8313e RBD add NAND to device tree
Add NAND to device tree, and call of_platform_bus_probe(). Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx')
-rw-r--r--arch/powerpc/platforms/83xx/mpc8313_rdb.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c
index 6fb8299..4996b7d 100644
--- a/arch/powerpc/platforms/83xx/mpc8313_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc8313_rdb.c
@@ -14,6 +14,7 @@
*/
#include <linux/pci.h>
+#include <linux/of_platform.h>
#include <asm/time.h>
#include <asm/ipic.h>
@@ -75,6 +76,18 @@ static int __init mpc8313_rdb_probe(void)
return of_flat_dt_is_compatible(root, "MPC8313ERDB");
}
+static struct of_device_id __initdata of_bus_ids[] = {
+ { .compatible = "simple-bus" },
+ {},
+};
+
+static int __init declare_of_platform_devices(void)
+{
+ of_platform_bus_probe(NULL, of_bus_ids, NULL);
+ return 0;
+}
+machine_device_initcall(mpc8313_rdb, declare_of_platform_devices);
+
define_machine(mpc8313_rdb) {
.name = "MPC8313 RDB",
.probe = mpc8313_rdb_probe,
OpenPOWER on IntegriCloud