Skip to content

Commit

Permalink
bus: imx-weim: populate devices on a simple bus
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
  • Loading branch information
Liu Ying authored and Shawn Guo committed Jul 18, 2014
1 parent a82eb09 commit 26651c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/bus/imx-weim.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ static int __init weim_parse_dt(struct platform_device *pdev,
}
}

ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
ret = of_platform_populate(pdev->dev.of_node,
of_default_bus_match_table,
NULL, &pdev->dev);
if (ret)
dev_err(&pdev->dev, "%s fail to create devices.\n",
pdev->dev.of_node->full_name);
Expand Down

0 comments on commit 26651c4

Please sign in to comment.