diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 02:00:10 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:41 -0500 |
commit | 199bfbe6f537f6bc8176228d01326dae7d37ff7f (patch) | |
tree | 4dcd9f7ef7cdae69036efe87be6b05666ea84c5b /arch/powerpc/platforms | |
parent | 46d026ac1029daa89dd3bf8a3b458fdaab0a3893 (diff) |
powerpc/85xx: Additional consolidate of_platform_bus_probe calls
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>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_common.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_mds.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/p1010rdb.c | 15 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/p1023_rds.c | 19 |
4 files changed, 7 insertions, 29 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_common.c b/arch/powerpc/platforms/85xx/mpc85xx_common.c index fe406681710..9fef5302adc 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_common.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_common.c | |||
@@ -20,6 +20,7 @@ static struct of_device_id __initdata mpc85xx_common_ids[] = { | |||
20 | { .compatible = "gianfar", }, | 20 | { .compatible = "gianfar", }, |
21 | { .compatible = "fsl,qe", }, | 21 | { .compatible = "fsl,qe", }, |
22 | { .compatible = "fsl,cpm2", }, | 22 | { .compatible = "fsl,cpm2", }, |
23 | { .compatible = "fsl,srio", }, | ||
23 | {}, | 24 | {}, |
24 | }; | 25 | }; |
25 | 26 | ||
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index 38cb473a52d..495cfd988c1 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
@@ -411,7 +411,6 @@ machine_arch_initcall(mpc8568_mds, board_fixups); | |||
411 | machine_arch_initcall(mpc8569_mds, board_fixups); | 411 | machine_arch_initcall(mpc8569_mds, board_fixups); |
412 | 412 | ||
413 | static struct of_device_id mpc85xx_ids[] = { | 413 | static struct of_device_id mpc85xx_ids[] = { |
414 | { .compatible = "fsl,srio", }, | ||
415 | { .compatible = "fsl,mpc8548-guts", }, | 414 | { .compatible = "fsl,mpc8548-guts", }, |
416 | { .compatible = "gpio-leds", }, | 415 | { .compatible = "gpio-leds", }, |
417 | {}, | 416 | {}, |
diff --git a/arch/powerpc/platforms/85xx/p1010rdb.c b/arch/powerpc/platforms/85xx/p1010rdb.c index d7387fa7f53..2f479f88c1a 100644 --- a/arch/powerpc/platforms/85xx/p1010rdb.c +++ b/arch/powerpc/platforms/85xx/p1010rdb.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <sysdev/fsl_soc.h> | 28 | #include <sysdev/fsl_soc.h> |
29 | #include <sysdev/fsl_pci.h> | 29 | #include <sysdev/fsl_pci.h> |
30 | 30 | ||
31 | #include "mpc85xx.h" | ||
32 | |||
31 | void __init p1010_rdb_pic_init(void) | 33 | void __init p1010_rdb_pic_init(void) |
32 | { | 34 | { |
33 | struct mpic *mpic; | 35 | struct mpic *mpic; |
@@ -81,18 +83,7 @@ static void __init p1010_rdb_setup_arch(void) | |||
81 | printk(KERN_INFO "P1010 RDB board from Freescale Semiconductor\n"); | 83 | printk(KERN_INFO "P1010 RDB board from Freescale Semiconductor\n"); |
82 | } | 84 | } |
83 | 85 | ||
84 | static struct of_device_id __initdata p1010rdb_ids[] = { | 86 | machine_device_initcall(p1010_rdb, mpc85xx_common_publish_devices); |
85 | { .type = "soc", }, | ||
86 | { .compatible = "soc", }, | ||
87 | { .compatible = "simple-bus", }, | ||
88 | {}, | ||
89 | }; | ||
90 | |||
91 | static int __init p1010rdb_publish_devices(void) | ||
92 | { | ||
93 | return of_platform_bus_probe(NULL, p1010rdb_ids, NULL); | ||
94 | } | ||
95 | machine_device_initcall(p1010_rdb, p1010rdb_publish_devices); | ||
96 | machine_arch_initcall(p1010_rdb, swiotlb_setup_bus_notifier); | 87 | machine_arch_initcall(p1010_rdb, swiotlb_setup_bus_notifier); |
97 | 88 | ||
98 | /* | 89 | /* |
diff --git a/arch/powerpc/platforms/85xx/p1023_rds.c b/arch/powerpc/platforms/85xx/p1023_rds.c index 835e0b335bf..e76c4dceee2 100644 --- a/arch/powerpc/platforms/85xx/p1023_rds.c +++ b/arch/powerpc/platforms/85xx/p1023_rds.c | |||
@@ -34,6 +34,8 @@ | |||
34 | #include <sysdev/fsl_soc.h> | 34 | #include <sysdev/fsl_soc.h> |
35 | #include <sysdev/fsl_pci.h> | 35 | #include <sysdev/fsl_pci.h> |
36 | 36 | ||
37 | #include "mpc85xx.h" | ||
38 | |||
37 | /* ************************************************************************ | 39 | /* ************************************************************************ |
38 | * | 40 | * |
39 | * Setup the architecture | 41 | * Setup the architecture |
@@ -92,22 +94,7 @@ static void __init mpc85xx_rds_setup_arch(void) | |||
92 | #endif | 94 | #endif |
93 | } | 95 | } |
94 | 96 | ||
95 | static struct of_device_id p1023_ids[] = { | 97 | machine_device_initcall(p1023_rds, mpc85xx_common_publish_devices); |
96 | { .type = "soc", }, | ||
97 | { .compatible = "soc", }, | ||
98 | { .compatible = "simple-bus", }, | ||
99 | {}, | ||
100 | }; | ||
101 | |||
102 | |||
103 | static int __init p1023_publish_devices(void) | ||
104 | { | ||
105 | of_platform_bus_probe(NULL, p1023_ids, NULL); | ||
106 | |||
107 | return 0; | ||
108 | } | ||
109 | |||
110 | machine_device_initcall(p1023_rds, p1023_publish_devices); | ||
111 | 98 | ||
112 | static void __init mpc85xx_rds_pic_init(void) | 99 | static void __init mpc85xx_rds_pic_init(void) |
113 | { | 100 | { |