]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[POWERPC] 86xx: MPC8641 HPCN - call of_platform_bus_probe()
authorWade Farnsworth <wfarnsworth@mvista.com>
Tue, 22 Jan 2008 20:17:45 +0000 (13:17 -0700)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Jan 2008 01:35:02 +0000 (19:35 -0600)
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

index 14f4e527e7ac0245224819e578ae73506a6ad530..cfbe8c52e26328520fc88d7e96fec7aed60897d6 100644 (file)
@@ -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,