diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-06-21 12:59:34 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-06-21 13:02:29 -0400 |
commit | 29d4f8a4974aacf46b028fa92f9dd3ffdba3e614 (patch) | |
tree | 35641937ac753b8b5d0255ef9ef312024e09a785 /include/linux/of_platform.h | |
parent | cbb49c2665eebfd1fa2e491403684d0542662137 (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.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r-- | include/linux/of_platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index 8f023f889a8a..839023351176 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h | |||
@@ -57,6 +57,9 @@ extern struct platform_device *of_platform_device_create(struct device_node *np, | |||
57 | extern int of_platform_bus_probe(struct device_node *root, | 57 | extern int of_platform_bus_probe(struct device_node *root, |
58 | const struct of_device_id *matches, | 58 | const struct of_device_id *matches, |
59 | struct device *parent); | 59 | struct device *parent); |
60 | extern int of_platform_populate(struct device_node *root, | ||
61 | const struct of_device_id *matches, | ||
62 | struct device *parent); | ||
60 | #endif /* !CONFIG_SPARC */ | 63 | #endif /* !CONFIG_SPARC */ |
61 | 64 | ||
62 | #endif /* CONFIG_OF_DEVICE */ | 65 | #endif /* CONFIG_OF_DEVICE */ |