[POWERPC] 86xx: MPC8641 HPCN - call of_platform_bus_probe()

Previous thread: [RAPIDIO] Fix compile error and warning by Linux Kernel Mailing List on Wednesday, January 30, 2008 - 8:04 pm. (1 message)

Next thread: [POWERPC] 8xx: adder875 - Fix flash bus-width and remove duplicate __initdata by Linux Kernel Mailing List on Wednesday, January 30, 2008 - 8:04 pm. (1 message)
From: Linux Kernel Mailing List
Date: Wednesday, January 30, 2008 - 8:04 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=15061d...
Commit:     15061d60a3be0845dc17a0fbe87610d1cc7106c7
Parent:     0ac247d5690570b825088a5752817eff42488897
Author:     Wade Farnsworth <wfarnsworth@mvista.com>
AuthorDate: Tue Jan 22 13:17:45 2008 -0700
Committer:  Kumar Gala <galak@kernel.crashing.org>
CommitDate: Wed Jan 23 19:35:02 2008 -0600

    [POWERPC] 86xx: MPC8641 HPCN - call of_platform_bus_probe()
    
    Call of_platform_bus_probe() on the MPC8641 HPCN, similar to what is
    done for other platforms.
    
    Signed-off-by: Wade Farnsworth <wfarnsworth@mvista.com>
    Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index 14f4e52..cfbe8c5 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -18,6 +18,7 @@
 #include <linux/kdev_t.h>
 #include <linux/delay.h>
 #include <linux/seq_file.h>
+#include <linux/of_platform.h>
 
 #include <asm/system.h>
 #include <asm/time.h>
@@ -212,6 +213,19 @@ mpc86xx_time_init(void)
 	return 0;
 }
 
+static __initdata struct of_device_id 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(mpc86xx_hpcn, declare_of_platform_devices);
+
 define_machine(mpc86xx_hpcn) {
 	.name			= "MPC86xx HPCN",
 	.probe			= mpc86xx_hpcn_probe,
-

Previous thread: [RAPIDIO] Fix compile error and warning by Linux Kernel Mailing List on Wednesday, January 30, 2008 - 8:04 pm. (1 message)

Next thread: [POWERPC] 8xx: adder875 - Fix flash bus-width and remove duplicate __initdata by Linux Kernel Mailing List on Wednesday, January 30, 2008 - 8:04 pm. (1 message)