diff options
-rw-r--r-- | arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/82xx/pq2fads.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c index fd83440eb287..3fce6b375dbc 100644 --- a/arch/powerpc/platforms/82xx/mpc8272_ads.c +++ b/arch/powerpc/platforms/82xx/mpc8272_ads.c | |||
@@ -165,14 +165,11 @@ static struct of_device_id __initdata of_bus_ids[] = { | |||
165 | 165 | ||
166 | static int __init declare_of_platform_devices(void) | 166 | static int __init declare_of_platform_devices(void) |
167 | { | 167 | { |
168 | if (!machine_is(mpc8272_ads)) | ||
169 | return 0; | ||
170 | |||
171 | /* Publish the QE devices */ | 168 | /* Publish the QE devices */ |
172 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | 169 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
173 | return 0; | 170 | return 0; |
174 | } | 171 | } |
175 | device_initcall(declare_of_platform_devices); | 172 | machine_device_initcall(mpc8272_ads, declare_of_platform_devices); |
176 | 173 | ||
177 | /* | 174 | /* |
178 | * Called very early, device-tree isn't unflattened | 175 | * Called very early, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/82xx/pq2fads.c b/arch/powerpc/platforms/82xx/pq2fads.c index 1be500501806..68196e349994 100644 --- a/arch/powerpc/platforms/82xx/pq2fads.c +++ b/arch/powerpc/platforms/82xx/pq2fads.c | |||
@@ -176,14 +176,11 @@ static struct of_device_id __initdata of_bus_ids[] = { | |||
176 | 176 | ||
177 | static int __init declare_of_platform_devices(void) | 177 | static int __init declare_of_platform_devices(void) |
178 | { | 178 | { |
179 | if (!machine_is(pq2fads)) | ||
180 | return 0; | ||
181 | |||
182 | /* Publish the QE devices */ | 179 | /* Publish the QE devices */ |
183 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | 180 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
184 | return 0; | 181 | return 0; |
185 | } | 182 | } |
186 | device_initcall(declare_of_platform_devices); | 183 | machine_device_initcall(pq2fads, declare_of_platform_devices); |
187 | 184 | ||
188 | define_machine(pq2fads) | 185 | define_machine(pq2fads) |
189 | { | 186 | { |
diff --git a/arch/powerpc/platforms/embedded6xx/ls_uart.c b/arch/powerpc/platforms/embedded6xx/ls_uart.c index c99264cedda5..9d891bd5df5a 100644 --- a/arch/powerpc/platforms/embedded6xx/ls_uart.c +++ b/arch/powerpc/platforms/embedded6xx/ls_uart.c | |||
@@ -117,9 +117,6 @@ static int __init ls_uarts_init(void) | |||
117 | phys_addr_t phys_addr; | 117 | phys_addr_t phys_addr; |
118 | int len; | 118 | int len; |
119 | 119 | ||
120 | if (!machine_is(linkstation)) | ||
121 | return 0; | ||
122 | |||
123 | avr = of_find_node_by_path("/soc10x/serial@80004500"); | 120 | avr = of_find_node_by_path("/soc10x/serial@80004500"); |
124 | if (!avr) | 121 | if (!avr) |
125 | return -EINVAL; | 122 | return -EINVAL; |
@@ -142,4 +139,4 @@ static int __init ls_uarts_init(void) | |||
142 | return 0; | 139 | return 0; |
143 | } | 140 | } |
144 | 141 | ||
145 | late_initcall(ls_uarts_init); | 142 | machine_late_initcall(linkstation, ls_uarts_init); |