diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-06-18 23:28:34 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-06-23 08:09:55 -0500 |
commit | a44a23ed4d144e4fb83d256b32021b732bda4787 (patch) | |
tree | 23332770ce4bce73e7dc7f59a2ba70582a64bbef /arch/powerpc/platforms/85xx | |
parent | 5e10cf587a7b1aa34099cbfc244e6f04e96dc835 (diff) | |
download | kernel-crypto-a44a23ed4d144e4fb83d256b32021b732bda4787.tar.gz kernel-crypto-a44a23ed4d144e4fb83d256b32021b732bda4787.tar.xz kernel-crypto-a44a23ed4d144e4fb83d256b32021b732bda4787.zip |
powerpc/85xx: Stop using ppc_md.init on socrates
Match what other 85xx platforms do for of_platform_bus_probe and use
machine_device_initcall. This is one small step in killing of
ppc_md.init.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx')
-rw-r--r-- | arch/powerpc/platforms/85xx/socrates.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/85xx/socrates.c b/arch/powerpc/platforms/85xx/socrates.c index d0e8443b12c..747d8fb3ab8 100644 --- a/arch/powerpc/platforms/85xx/socrates.c +++ b/arch/powerpc/platforms/85xx/socrates.c @@ -102,10 +102,11 @@ static struct of_device_id __initdata socrates_of_bus_ids[] = { {}, }; -static void __init socrates_init(void) +static int __init socrates_publish_devices(void) { - of_platform_bus_probe(NULL, socrates_of_bus_ids, NULL); + return of_platform_bus_probe(NULL, socrates_of_bus_ids, NULL); } +machine_device_initcall(socrates, socrates_publish_devices); /* * Called very early, device-tree isn't unflattened @@ -124,7 +125,6 @@ define_machine(socrates) { .name = "Socrates", .probe = socrates_probe, .setup_arch = socrates_setup_arch, - .init = socrates_init, .init_IRQ = socrates_pic_init, .get_irq = mpic_get_irq, .restart = fsl_rstcr_restart, |