aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-03-28 21:20:47 -0600
committerGrant Likely <grant.likely@secretlab.ca>2011-03-28 21:20:47 -0600
commit3a1a90a4cf4f0870bb6ee8065092e2c0ea7d72aa (patch)
tree85e5c9271191f8545665e805a009808868961cd2 /include
parente0ceac7b1e4b89519b8bfd711b128560a5b2deea (diff)
dt: add of_platform_populate() for creating device from the device tree
of_platform_populate() is similar to of_platform_bus_probe() except that it strictly enforces that all device nodes must have a compatible property, and it can be used to register devices (not buses) which are children of the root node. This patch also modifies MPC5200 support to use the new function. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of_platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index acb65bc2489..fb9d21bdfc0 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -71,6 +71,9 @@ extern struct platform_device *of_platform_device_create(struct device_node *np,
extern int of_platform_bus_probe(struct device_node *root,
const struct of_device_id *matches,
struct device *parent);
+extern int of_platform_populate(struct device_node *root,
+ const struct of_device_id *matches,
+ struct device *parent);
#endif /* !CONFIG_SPARC */
#endif /* CONFIG_OF_DEVICE */