summaryrefslogtreecommitdiffstats
path: root/drivers/bus/uniphier-system-bus.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-06-01 08:53:08 +0200
committerRob Herring <robh@kernel.org>2016-06-23 22:00:48 +0200
commit2cf669243ecb6c1bf0d39e54710c4c24ef0ab4da (patch)
tree490034fe28ee25ad16ef6048df43952679759410 /drivers/bus/uniphier-system-bus.c
parentbus: imx-weim: use of_platform_default_populate() to populate default bus (diff)
downloadlinux-2cf669243ecb6c1bf0d39e54710c4c24ef0ab4da.tar.xz
linux-2cf669243ecb6c1bf0d39e54710c4c24ef0ab4da.zip
bus: uniphier-system-bus: 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. Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/bus/uniphier-system-bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/uniphier-system-bus.c b/drivers/bus/uniphier-system-bus.c
index 350b7309c26d..1e6e0269edcc 100644
--- a/drivers/bus/uniphier-system-bus.c
+++ b/drivers/bus/uniphier-system-bus.c
@@ -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[] = {