]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc/85xx: Additional consolidate of_platform_bus_probe calls
authorKumar Gala <galak@kernel.crashing.org>
Thu, 24 Nov 2011 07:00:10 +0000 (01:00 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Nov 2011 08:01:41 +0000 (02:01 -0600)
P1010RDB & P1023RDS can use the new mpc85xx_common_publish_devices().
Also move 'fsl,srio' into the list of standard buses.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/mpc85xx_common.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/p1010rdb.c
arch/powerpc/platforms/85xx/p1023_rds.c

index fe40668171052ae7414d5baf032d784f2b563d02..9fef5302adc127468d821f8335c0ef007e416270 100644 (file)
@@ -20,6 +20,7 @@ static struct of_device_id __initdata mpc85xx_common_ids[] = {
        { .compatible = "gianfar", },
        { .compatible = "fsl,qe", },
        { .compatible = "fsl,cpm2", },
+       { .compatible = "fsl,srio", },
        {},
 };
 
index 38cb473a52d973c31fa3bd5d2413010fe9e49e66..495cfd988c1afdf06f9d623684d16dd97cf77e9b 100644 (file)
@@ -411,7 +411,6 @@ machine_arch_initcall(mpc8568_mds, board_fixups);
 machine_arch_initcall(mpc8569_mds, board_fixups);
 
 static struct of_device_id mpc85xx_ids[] = {
-       { .compatible = "fsl,srio", },
        { .compatible = "fsl,mpc8548-guts", },
        { .compatible = "gpio-leds", },
        {},
index d7387fa7f5345bd33c6c7db37039f6d81af29729..2f479f88c1a00679db744b39b864f1cca3c39088 100644 (file)
@@ -28,6 +28,8 @@
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 
+#include "mpc85xx.h"
+
 void __init p1010_rdb_pic_init(void)
 {
        struct mpic *mpic;
@@ -81,18 +83,7 @@ static void __init p1010_rdb_setup_arch(void)
        printk(KERN_INFO "P1010 RDB board from Freescale Semiconductor\n");
 }
 
-static struct of_device_id __initdata p1010rdb_ids[] = {
-       { .type = "soc", },
-       { .compatible = "soc", },
-       { .compatible = "simple-bus", },
-       {},
-};
-
-static int __init p1010rdb_publish_devices(void)
-{
-       return of_platform_bus_probe(NULL, p1010rdb_ids, NULL);
-}
-machine_device_initcall(p1010_rdb, p1010rdb_publish_devices);
+machine_device_initcall(p1010_rdb, mpc85xx_common_publish_devices);
 machine_arch_initcall(p1010_rdb, swiotlb_setup_bus_notifier);
 
 /*
index 835e0b335bfaf76dd99b8005ce31e2e1e8882a1e..e76c4dceee23ad8bd89db9c88a1d167236b3aeb8 100644 (file)
@@ -34,6 +34,8 @@
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 
+#include "mpc85xx.h"
+
 /* ************************************************************************
  *
  * Setup the architecture
@@ -92,22 +94,7 @@ static void __init mpc85xx_rds_setup_arch(void)
 #endif
 }
 
-static struct of_device_id p1023_ids[] = {
-       { .type = "soc", },
-       { .compatible = "soc", },
-       { .compatible = "simple-bus", },
-       {},
-};
-
-
-static int __init p1023_publish_devices(void)
-{
-       of_platform_bus_probe(NULL, p1023_ids, NULL);
-
-       return 0;
-}
-
-machine_device_initcall(p1023_rds, p1023_publish_devices);
+machine_device_initcall(p1023_rds, mpc85xx_common_publish_devices);
 
 static void __init mpc85xx_rds_pic_init(void)
 {