dt: add of_platform_populate() for creating device from the device tree
[cascardo/linux.git] / include / linux / of_platform.h
index 8f023f8..8390233 100644 (file)
@@ -57,6 +57,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 */