aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2014-07-04 05:00:41 -0400
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 04:11:36 -0400
commit26651c4376454b8a9422577e57c59b6cc37c603d (patch)
treeb7922e53e8b2a4399fbe05313cc82f46580c0e34
parenta82eb09f4abef12550633da34233b071851fd0ff (diff)
bus: imx-weim: populate devices on a simple bus
There could be some memory map devices located in a certain chip select region of the i.MX WEIM. The devices could be attached to a simple bus(for example, a AXI bus) whose root node is one child device tree node of the i.MX WEIM device tree node. There should be a bridge(very likely, software transparent) bewteen the i.MX WEIM and the simple bus. This patch makes the i.MX WEIM driver possible to populate devices on a simple bus. In this way, people may try various IPs(in a FPGA, maybe) outside of i.MX chips with the i.MX WEIM embedded. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
-rw-r--r--drivers/bus/imx-weim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
index f8ee13c7bf7b..75c9681f8021 100644
--- a/drivers/bus/imx-weim.c
+++ b/drivers/bus/imx-weim.c
@@ -162,7 +162,9 @@ static int __init weim_parse_dt(struct platform_device *pdev,
162 } 162 }
163 } 163 }
164 164
165 ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); 165 ret = of_platform_populate(pdev->dev.of_node,
166 of_default_bus_match_table,
167 NULL, &pdev->dev);
166 if (ret) 168 if (ret)
167 dev_err(&pdev->dev, "%s fail to create devices.\n", 169 dev_err(&pdev->dev, "%s fail to create devices.\n",
168 pdev->dev.of_node->full_name); 170 pdev->dev.of_node->full_name);