[PATCH] arm: prima2: use of_platform_populate instead of of_platform_bus_probe
Barry Song
21cnbao at gmail.com
Wed May 15 10:42:33 EDT 2013
2013/5/15 Arnd Bergmann <arnd at arndb.de>:
> On Tuesday 14 May 2013, Barry Song wrote:
>>
>> use of_platform_populate to populate platform devices, it is suitable
>> for creating devices which are children of the root node, then makes
>> things like pcm work.
>>
>> Signed-off-by: Barry Song <Baohua.Song at csr.com>
>> Signed-off-by: Rongjun Ying <Rongjun.Ying at csr.com>
>
> With 3.10-rc1 and above, you can just remove the sirfsoc_mach_init
> function entirely for the same effect.
ok. since kernel/setup.c does:
static int __init customize_machine(void)
{
/*
* customizes platform devices, or adds new ones
* On DT based machines, we fall back to populating the
* machine from the device tree, if no callback is provided,
* otherwise we would always need an init_machine callback.
*/
if (machine_desc->init_machine)
machine_desc->init_machine();
#ifdef CONFIG_OF
else
of_platform_populate(NULL, of_default_bus_match_table,
NULL, NULL);
#endif
return 0;
}
>
> Arnd
-barry
More information about the linux-arm-kernel
mailing list