powerpc/85xx: consolidate of_platform_bus_probe calls
85xx board files have a lot of duplication in *_publish_devices()/ *_declare_of_platform_devices() functions. Merge that into a single function common to most of the boards. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Kumar Gala

vecāks
543a07b173
revīzija
46d026ac10
@@ -97,17 +97,7 @@ static void __init socrates_setup_arch(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
static struct of_device_id __initdata socrates_of_bus_ids[] = {
|
||||
{ .compatible = "simple-bus", },
|
||||
{ .compatible = "gianfar", },
|
||||
{},
|
||||
};
|
||||
|
||||
static int __init socrates_publish_devices(void)
|
||||
{
|
||||
return of_platform_bus_probe(NULL, socrates_of_bus_ids, NULL);
|
||||
}
|
||||
machine_device_initcall(socrates, socrates_publish_devices);
|
||||
machine_device_initcall(socrates, mpc85xx_common_publish_devices);
|
||||
|
||||
/*
|
||||
* Called very early, device-tree isn't unflattened
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user