[POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code
Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Этот коммит содержится в:

коммит произвёл
Kumar Gala

родитель
b61ad6532b
Коммит
ca956f0ea8
@@ -176,14 +176,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
|
||||
|
||||
static int __init declare_of_platform_devices(void)
|
||||
{
|
||||
if (!machine_is(pq2fads))
|
||||
return 0;
|
||||
|
||||
/* Publish the QE devices */
|
||||
of_platform_bus_probe(NULL, of_bus_ids, NULL);
|
||||
return 0;
|
||||
}
|
||||
device_initcall(declare_of_platform_devices);
|
||||
machine_device_initcall(pq2fads, declare_of_platform_devices);
|
||||
|
||||
define_machine(pq2fads)
|
||||
{
|
||||
|
Ссылка в новой задаче
Block a user