Skip to content

Commit

Permalink
mips: use of_platform_default_populate() to populate default bus
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
Kefeng Wang authored and robherring committed Jun 23, 2016
1 parent 435ebcb commit 1a1d2f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/pic32/pic32mzda/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a1d2f9

Please sign in to comment.