diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_ads.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ads.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index b7821dbae0..5eeff370f5 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c | |||
@@ -220,25 +220,25 @@ void mpc85xx_ads_show_cpuinfo(struct seq_file *m) | |||
220 | seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024)); | 220 | seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024)); |
221 | } | 221 | } |
222 | 222 | ||
223 | void __init platform_init(void) | 223 | /* |
224 | * Called very early, device-tree isn't unflattened | ||
225 | */ | ||
226 | static int __init mpc85xx_ads_probe(void) | ||
224 | { | 227 | { |
225 | ppc_md.setup_arch = mpc85xx_ads_setup_arch; | 228 | /* We always match for now, eventually we should look at the flat |
226 | ppc_md.show_cpuinfo = mpc85xx_ads_show_cpuinfo; | 229 | dev tree to ensure this is the board we are suppose to run on |
227 | 230 | */ | |
228 | ppc_md.init_IRQ = mpc85xx_ads_pic_init; | 231 | return 1; |
229 | ppc_md.get_irq = mpic_get_irq; | ||
230 | |||
231 | ppc_md.restart = mpc85xx_restart; | ||
232 | ppc_md.power_off = NULL; | ||
233 | ppc_md.halt = NULL; | ||
234 | |||
235 | ppc_md.time_init = NULL; | ||
236 | ppc_md.set_rtc_time = NULL; | ||
237 | ppc_md.get_rtc_time = NULL; | ||
238 | ppc_md.calibrate_decr = generic_calibrate_decr; | ||
239 | |||
240 | ppc_md.progress = udbg_progress; | ||
241 | |||
242 | if (ppc_md.progress) | ||
243 | ppc_md.progress("mpc85xx_ads platform_init(): exit", 0); | ||
244 | } | 232 | } |
233 | |||
234 | define_machine(mpc85xx_ads) { | ||
235 | .name = "MPC85xx ADS", | ||
236 | .probe = mpc85xx_ads_probe, | ||
237 | .setup_arch = mpc85xx_ads_setup_arch, | ||
238 | .init_IRQ = mpc85xx_ads_pic_init, | ||
239 | .show_cpuinfo = mpc85xx_ads_show_cpuinfo, | ||
240 | .get_irq = mpic_get_irq, | ||
241 | .restart = mpc85xx_restart, | ||
242 | .calibrate_decr = generic_calibrate_decr, | ||
243 | .progress = udbg_progress, | ||
244 | }; | ||