diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/83xx/asp834x.c | 15 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/km83xx.c | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/misc.c | 17 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc830x_rdb.c | 13 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc831x_rdb.c | 14 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_mds.c | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_rdb.c | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_itx.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 15 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_mds.c | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_rdk.c | 11 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc837x_mds.c | 17 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc837x_rdb.c | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc83xx.h | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/sbc834x.c | 15 |
15 files changed, 31 insertions, 180 deletions
diff --git a/arch/powerpc/platforms/83xx/asp834x.c b/arch/powerpc/platforms/83xx/asp834x.c index 90b6c063758b..464ea8e0292d 100644 --- a/arch/powerpc/platforms/83xx/asp834x.c +++ b/arch/powerpc/platforms/83xx/asp834x.c | |||
@@ -36,20 +36,7 @@ static void __init asp834x_setup_arch(void) | |||
36 | mpc834x_usb_cfg(); | 36 | mpc834x_usb_cfg(); |
37 | } | 37 | } |
38 | 38 | ||
39 | static struct __initdata of_device_id asp8347_ids[] = { | 39 | machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices); |
40 | { .type = "soc", }, | ||
41 | { .compatible = "soc", }, | ||
42 | { .compatible = "simple-bus", }, | ||
43 | { .compatible = "gianfar", }, | ||
44 | {}, | ||
45 | }; | ||
46 | |||
47 | static int __init asp8347_declare_of_platform_devices(void) | ||
48 | { | ||
49 | of_platform_bus_probe(NULL, asp8347_ids, NULL); | ||
50 | return 0; | ||
51 | } | ||
52 | machine_device_initcall(asp834x, asp8347_declare_of_platform_devices); | ||
53 | 40 | ||
54 | /* | 41 | /* |
55 | * Called very early, MMU is off, device-tree isn't unflattened | 42 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/km83xx.c b/arch/powerpc/platforms/83xx/km83xx.c index eae5913db03c..7ef635495170 100644 --- a/arch/powerpc/platforms/83xx/km83xx.c +++ b/arch/powerpc/platforms/83xx/km83xx.c | |||
@@ -122,23 +122,7 @@ static void __init mpc83xx_km_setup_arch(void) | |||
122 | #endif /* CONFIG_QUICC_ENGINE */ | 122 | #endif /* CONFIG_QUICC_ENGINE */ |
123 | } | 123 | } |
124 | 124 | ||
125 | static struct of_device_id kmpbec83xx_ids[] = { | 125 | machine_device_initcall(mpc83xx_km, mpc83xx_declare_of_platform_devices); |
126 | { .type = "soc", }, | ||
127 | { .compatible = "soc", }, | ||
128 | { .compatible = "simple-bus", }, | ||
129 | { .type = "qe", }, | ||
130 | { .compatible = "fsl,qe", }, | ||
131 | {}, | ||
132 | }; | ||
133 | |||
134 | static int __init kmeter_declare_of_platform_devices(void) | ||
135 | { | ||
136 | /* Publish the QE devices */ | ||
137 | of_platform_bus_probe(NULL, kmpbec83xx_ids, NULL); | ||
138 | |||
139 | return 0; | ||
140 | } | ||
141 | machine_device_initcall(mpc83xx_km, kmeter_declare_of_platform_devices); | ||
142 | 126 | ||
143 | /* list of the supported boards */ | 127 | /* list of the supported boards */ |
144 | static char *board[] __initdata = { | 128 | static char *board[] __initdata = { |
diff --git a/arch/powerpc/platforms/83xx/misc.c b/arch/powerpc/platforms/83xx/misc.c index 4ac60cc3727b..ee4de779ac11 100644 --- a/arch/powerpc/platforms/83xx/misc.c +++ b/arch/powerpc/platforms/83xx/misc.c | |||
@@ -111,3 +111,20 @@ void __init mpc83xx_ipic_and_qe_init_IRQ(void) | |||
111 | mpc83xx_qe_init_IRQ(); | 111 | mpc83xx_qe_init_IRQ(); |
112 | } | 112 | } |
113 | #endif /* CONFIG_QUICC_ENGINE */ | 113 | #endif /* CONFIG_QUICC_ENGINE */ |
114 | |||
115 | static struct of_device_id __initdata of_bus_ids[] = { | ||
116 | { .type = "soc", }, | ||
117 | { .compatible = "soc", }, | ||
118 | { .compatible = "simple-bus" }, | ||
119 | { .compatible = "gianfar" }, | ||
120 | { .compatible = "gpio-leds", }, | ||
121 | { .type = "qe", }, | ||
122 | { .compatible = "fsl,qe", }, | ||
123 | {}, | ||
124 | }; | ||
125 | |||
126 | int __init mpc83xx_declare_of_platform_devices(void) | ||
127 | { | ||
128 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
129 | return 0; | ||
130 | } | ||
diff --git a/arch/powerpc/platforms/83xx/mpc830x_rdb.c b/arch/powerpc/platforms/83xx/mpc830x_rdb.c index b453c15d200a..ef595f1ef705 100644 --- a/arch/powerpc/platforms/83xx/mpc830x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc830x_rdb.c | |||
@@ -56,18 +56,7 @@ static int __init mpc830x_rdb_probe(void) | |||
56 | return of_flat_dt_match(of_get_flat_dt_root(), board); | 56 | return of_flat_dt_match(of_get_flat_dt_root(), board); |
57 | } | 57 | } |
58 | 58 | ||
59 | static struct of_device_id __initdata of_bus_ids[] = { | 59 | machine_device_initcall(mpc830x_rdb, mpc83xx_declare_of_platform_devices); |
60 | { .compatible = "simple-bus" }, | ||
61 | { .compatible = "gianfar" }, | ||
62 | {}, | ||
63 | }; | ||
64 | |||
65 | static int __init declare_of_platform_devices(void) | ||
66 | { | ||
67 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
68 | return 0; | ||
69 | } | ||
70 | machine_device_initcall(mpc830x_rdb, declare_of_platform_devices); | ||
71 | 60 | ||
72 | define_machine(mpc830x_rdb) { | 61 | define_machine(mpc830x_rdb) { |
73 | .name = "MPC830x RDB", | 62 | .name = "MPC830x RDB", |
diff --git a/arch/powerpc/platforms/83xx/mpc831x_rdb.c b/arch/powerpc/platforms/83xx/mpc831x_rdb.c index 386bde8b2b24..ce87406b0534 100644 --- a/arch/powerpc/platforms/83xx/mpc831x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc831x_rdb.c | |||
@@ -58,19 +58,7 @@ static int __init mpc831x_rdb_probe(void) | |||
58 | return of_flat_dt_match(of_get_flat_dt_root(), board); | 58 | return of_flat_dt_match(of_get_flat_dt_root(), board); |
59 | } | 59 | } |
60 | 60 | ||
61 | static struct of_device_id __initdata of_bus_ids[] = { | 61 | machine_device_initcall(mpc831x_rdb, mpc83xx_declare_of_platform_devices); |
62 | { .compatible = "simple-bus" }, | ||
63 | { .compatible = "gianfar" }, | ||
64 | { .compatible = "gpio-leds", }, | ||
65 | {}, | ||
66 | }; | ||
67 | |||
68 | static int __init declare_of_platform_devices(void) | ||
69 | { | ||
70 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
71 | return 0; | ||
72 | } | ||
73 | machine_device_initcall(mpc831x_rdb, declare_of_platform_devices); | ||
74 | 62 | ||
75 | define_machine(mpc831x_rdb) { | 63 | define_machine(mpc831x_rdb) { |
76 | .name = "MPC831x RDB", | 64 | .name = "MPC831x RDB", |
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c index 39e0a92f4251..df80eccbbc6d 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c | |||
@@ -101,23 +101,7 @@ static void __init mpc832x_sys_setup_arch(void) | |||
101 | #endif /* CONFIG_QUICC_ENGINE */ | 101 | #endif /* CONFIG_QUICC_ENGINE */ |
102 | } | 102 | } |
103 | 103 | ||
104 | static struct of_device_id mpc832x_ids[] = { | 104 | machine_device_initcall(mpc832x_mds, mpc83xx_declare_of_platform_devices); |
105 | { .type = "soc", }, | ||
106 | { .compatible = "soc", }, | ||
107 | { .compatible = "simple-bus", }, | ||
108 | { .type = "qe", }, | ||
109 | { .compatible = "fsl,qe", }, | ||
110 | {}, | ||
111 | }; | ||
112 | |||
113 | static int __init mpc832x_declare_of_platform_devices(void) | ||
114 | { | ||
115 | /* Publish the QE devices */ | ||
116 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); | ||
117 | |||
118 | return 0; | ||
119 | } | ||
120 | machine_device_initcall(mpc832x_mds, mpc832x_declare_of_platform_devices); | ||
121 | 105 | ||
122 | /* | 106 | /* |
123 | * Called very early, MMU is off, device-tree isn't unflattened | 107 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index ebfecec958d7..e4c7c6424a8a 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -218,23 +218,7 @@ static void __init mpc832x_rdb_setup_arch(void) | |||
218 | #endif /* CONFIG_QUICC_ENGINE */ | 218 | #endif /* CONFIG_QUICC_ENGINE */ |
219 | } | 219 | } |
220 | 220 | ||
221 | static struct of_device_id mpc832x_ids[] = { | 221 | machine_device_initcall(mpc832x_rdb, mpc83xx_declare_of_platform_devices); |
222 | { .type = "soc", }, | ||
223 | { .compatible = "soc", }, | ||
224 | { .compatible = "simple-bus", }, | ||
225 | { .type = "qe", }, | ||
226 | { .compatible = "fsl,qe", }, | ||
227 | {}, | ||
228 | }; | ||
229 | |||
230 | static int __init mpc832x_declare_of_platform_devices(void) | ||
231 | { | ||
232 | /* Publish the QE devices */ | ||
233 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); | ||
234 | |||
235 | return 0; | ||
236 | } | ||
237 | machine_device_initcall(mpc832x_rdb, mpc832x_declare_of_platform_devices); | ||
238 | 222 | ||
239 | /* | 223 | /* |
240 | * Called very early, MMU is off, device-tree isn't unflattened | 224 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 509e070cf29a..87868c1c52f0 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -41,13 +41,12 @@ | |||
41 | 41 | ||
42 | static struct of_device_id __initdata mpc834x_itx_ids[] = { | 42 | static struct of_device_id __initdata mpc834x_itx_ids[] = { |
43 | { .compatible = "fsl,pq2pro-localbus", }, | 43 | { .compatible = "fsl,pq2pro-localbus", }, |
44 | { .compatible = "simple-bus", }, | ||
45 | { .compatible = "gianfar", }, | ||
46 | {}, | 44 | {}, |
47 | }; | 45 | }; |
48 | 46 | ||
49 | static int __init mpc834x_itx_declare_of_platform_devices(void) | 47 | static int __init mpc834x_itx_declare_of_platform_devices(void) |
50 | { | 48 | { |
49 | mpc83xx_declare_of_platform_devices(); | ||
51 | return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); | 50 | return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); |
52 | } | 51 | } |
53 | machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); | 52 | machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 3807735a88d8..4be95550d0c3 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -92,20 +92,7 @@ static void __init mpc834x_mds_setup_arch(void) | |||
92 | mpc834xemds_usb_cfg(); | 92 | mpc834xemds_usb_cfg(); |
93 | } | 93 | } |
94 | 94 | ||
95 | static struct of_device_id mpc834x_ids[] = { | 95 | machine_device_initcall(mpc834x_mds, mpc83xx_declare_of_platform_devices); |
96 | { .type = "soc", }, | ||
97 | { .compatible = "soc", }, | ||
98 | { .compatible = "simple-bus", }, | ||
99 | { .compatible = "gianfar", }, | ||
100 | {}, | ||
101 | }; | ||
102 | |||
103 | static int __init mpc834x_declare_of_platform_devices(void) | ||
104 | { | ||
105 | of_platform_bus_probe(NULL, mpc834x_ids, NULL); | ||
106 | return 0; | ||
107 | } | ||
108 | machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices); | ||
109 | 96 | ||
110 | /* | 97 | /* |
111 | * Called very early, MMU is off, device-tree isn't unflattened | 98 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index afb3e45e1e97..3b202752ef5f 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -144,23 +144,7 @@ static void __init mpc836x_mds_setup_arch(void) | |||
144 | #endif /* CONFIG_QUICC_ENGINE */ | 144 | #endif /* CONFIG_QUICC_ENGINE */ |
145 | } | 145 | } |
146 | 146 | ||
147 | static struct of_device_id mpc836x_ids[] = { | 147 | machine_device_initcall(mpc836x_mds, mpc83xx_declare_of_platform_devices); |
148 | { .type = "soc", }, | ||
149 | { .compatible = "soc", }, | ||
150 | { .compatible = "simple-bus", }, | ||
151 | { .type = "qe", }, | ||
152 | { .compatible = "fsl,qe", }, | ||
153 | {}, | ||
154 | }; | ||
155 | |||
156 | static int __init mpc836x_declare_of_platform_devices(void) | ||
157 | { | ||
158 | /* Publish the QE devices */ | ||
159 | of_platform_bus_probe(NULL, mpc836x_ids, NULL); | ||
160 | |||
161 | return 0; | ||
162 | } | ||
163 | machine_device_initcall(mpc836x_mds, mpc836x_declare_of_platform_devices); | ||
164 | 148 | ||
165 | #ifdef CONFIG_QE_USB | 149 | #ifdef CONFIG_QE_USB |
166 | static int __init mpc836x_usb_cfg(void) | 150 | static int __init mpc836x_usb_cfg(void) |
diff --git a/arch/powerpc/platforms/83xx/mpc836x_rdk.c b/arch/powerpc/platforms/83xx/mpc836x_rdk.c index cd8f0782a66b..fd6f730ff2f9 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_rdk.c +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c | |||
@@ -27,16 +27,7 @@ | |||
27 | 27 | ||
28 | #include "mpc83xx.h" | 28 | #include "mpc83xx.h" |
29 | 29 | ||
30 | static struct of_device_id __initdata mpc836x_rdk_ids[] = { | 30 | machine_device_initcall(mpc836x_rdk, mpc83xx_declare_of_platform_devices); |
31 | { .compatible = "simple-bus", }, | ||
32 | {}, | ||
33 | }; | ||
34 | |||
35 | static int __init mpc836x_rdk_declare_of_platform_devices(void) | ||
36 | { | ||
37 | return of_platform_bus_probe(NULL, mpc836x_rdk_ids, NULL); | ||
38 | } | ||
39 | machine_device_initcall(mpc836x_rdk, mpc836x_rdk_declare_of_platform_devices); | ||
40 | 31 | ||
41 | static void __init mpc836x_rdk_setup_arch(void) | 32 | static void __init mpc836x_rdk_setup_arch(void) |
42 | { | 33 | { |
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c index 3be7f3ac1573..74631832e1a3 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c | |||
@@ -95,22 +95,7 @@ static void __init mpc837x_mds_setup_arch(void) | |||
95 | mpc837xmds_usb_cfg(); | 95 | mpc837xmds_usb_cfg(); |
96 | } | 96 | } |
97 | 97 | ||
98 | static struct of_device_id mpc837x_ids[] = { | 98 | machine_device_initcall(mpc837x_mds, mpc83xx_declare_of_platform_devices); |
99 | { .type = "soc", }, | ||
100 | { .compatible = "soc", }, | ||
101 | { .compatible = "simple-bus", }, | ||
102 | { .compatible = "gianfar", }, | ||
103 | {}, | ||
104 | }; | ||
105 | |||
106 | static int __init mpc837x_declare_of_platform_devices(void) | ||
107 | { | ||
108 | /* Publish platform_device */ | ||
109 | of_platform_bus_probe(NULL, mpc837x_ids, NULL); | ||
110 | |||
111 | return 0; | ||
112 | } | ||
113 | machine_device_initcall(mpc837x_mds, mpc837x_declare_of_platform_devices); | ||
114 | 99 | ||
115 | /* | 100 | /* |
116 | * Called very early, MMU is off, device-tree isn't unflattened | 101 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/mpc837x_rdb.c b/arch/powerpc/platforms/83xx/mpc837x_rdb.c index eebfd81c7519..a4a5336d1143 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc837x_rdb.c | |||
@@ -67,23 +67,7 @@ static void __init mpc837x_rdb_setup_arch(void) | |||
67 | mpc837x_rdb_sd_cfg(); | 67 | mpc837x_rdb_sd_cfg(); |
68 | } | 68 | } |
69 | 69 | ||
70 | static struct of_device_id mpc837x_ids[] = { | 70 | machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices); |
71 | { .type = "soc", }, | ||
72 | { .compatible = "soc", }, | ||
73 | { .compatible = "simple-bus", }, | ||
74 | { .compatible = "gianfar", }, | ||
75 | { .compatible = "gpio-leds", }, | ||
76 | {}, | ||
77 | }; | ||
78 | |||
79 | static int __init mpc837x_declare_of_platform_devices(void) | ||
80 | { | ||
81 | /* Publish platform_device */ | ||
82 | of_platform_bus_probe(NULL, mpc837x_ids, NULL); | ||
83 | |||
84 | return 0; | ||
85 | } | ||
86 | machine_device_initcall(mpc837x_rdb, mpc837x_declare_of_platform_devices); | ||
87 | 71 | ||
88 | static const char *board[] __initdata = { | 72 | static const char *board[] __initdata = { |
89 | "fsl,mpc8377rdb", | 73 | "fsl,mpc8377rdb", |
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index f07751ab9b11..a54f6baaae70 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -79,5 +79,6 @@ static inline void __init mpc83xx_qe_init_IRQ(void) {} | |||
79 | #define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ | 79 | #define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ |
80 | #endif /* CONFIG_QUICC_ENGINE */ | 80 | #endif /* CONFIG_QUICC_ENGINE */ |
81 | 81 | ||
82 | extern int mpc83xx_declare_of_platform_devices(void); | ||
82 | 83 | ||
83 | #endif /* __MPC83XX_H__ */ | 84 | #endif /* __MPC83XX_H__ */ |
diff --git a/arch/powerpc/platforms/83xx/sbc834x.c b/arch/powerpc/platforms/83xx/sbc834x.c index cdce953c575b..22faaa1c1073 100644 --- a/arch/powerpc/platforms/83xx/sbc834x.c +++ b/arch/powerpc/platforms/83xx/sbc834x.c | |||
@@ -62,20 +62,7 @@ static void __init sbc834x_setup_arch(void) | |||
62 | 62 | ||
63 | } | 63 | } |
64 | 64 | ||
65 | static struct __initdata of_device_id sbc834x_ids[] = { | 65 | machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices); |
66 | { .type = "soc", }, | ||
67 | { .compatible = "soc", }, | ||
68 | { .compatible = "simple-bus", }, | ||
69 | { .compatible = "gianfar", }, | ||
70 | {}, | ||
71 | }; | ||
72 | |||
73 | static int __init sbc834x_declare_of_platform_devices(void) | ||
74 | { | ||
75 | of_platform_bus_probe(NULL, sbc834x_ids, NULL); | ||
76 | return 0; | ||
77 | } | ||
78 | machine_device_initcall(sbc834x, sbc834x_declare_of_platform_devices); | ||
79 | 66 | ||
80 | /* | 67 | /* |
81 | * Called very early, MMU is off, device-tree isn't unflattened | 68 | * Called very early, MMU is off, device-tree isn't unflattened |