Skip to content

Commit

Permalink
bus: uniphier-system-bus: use of_platform_default_populate() to popul…
Browse files Browse the repository at this point in the history
…ate 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.

Acked-by: Masahiro Yamada <[email protected]>
Cc: Masahiro Yamada <[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 39ec8d3 commit 2cf6692
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/bus/uniphier-system-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ static int uniphier_system_bus_probe(struct platform_device *pdev)
uniphier_system_bus_set_reg(priv);

/* Now, the bus is configured. Populate platform_devices below it */
return of_platform_populate(dev->of_node, of_default_bus_match_table,
NULL, dev);
return of_platform_default_populate(dev->of_node, NULL, dev);
}

static const struct of_device_id uniphier_system_bus_match[] = {
Expand Down

0 comments on commit 2cf6692

Please sign in to comment.