mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
mips: use of_platform_default_populate() to populate default bus
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Joshua Henderson <joshua.henderson@microchip.com> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
435ebcbc9f
commit
1a1d2f9968
@ -147,8 +147,7 @@ static int __init plat_of_setup(void)
|
||||
panic("Device tree not present");
|
||||
|
||||
pic32_of_prepare_platform_data(pic32_auxdata_lookup);
|
||||
if (of_platform_populate(NULL, of_default_bus_match_table,
|
||||
pic32_auxdata_lookup, NULL))
|
||||
if (of_platform_default_populate(NULL, pic32_auxdata_lookup, NULL))
|
||||
panic("Failed to populate DT");
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user