platform: Add platform_find_device_by_driver() helper
[linux-2.6-microblaze.git] / include / linux / platform_device.h
index 9bc36b5..37e15a9 100644 (file)
@@ -51,6 +51,9 @@ extern struct device platform_bus;
 extern void arch_setup_pdev_archdata(struct platform_device *);
 extern struct resource *platform_get_resource(struct platform_device *,
                                              unsigned int, unsigned int);
+extern struct device *
+platform_find_device_by_driver(struct device *start,
+                              const struct device_driver *drv);
 extern void __iomem *
 devm_platform_ioremap_resource(struct platform_device *pdev,
                               unsigned int index);