platform: Add platform_find_device_by_driver() helper
[linux-2.6-microblaze.git] / drivers / gpu / drm / rockchip / rockchip_drm_drv.c
index 53d2c5b..38dc263 100644 (file)
@@ -330,8 +330,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
                struct device *p = NULL, *d;
 
                do {
-                       d = bus_find_device(&platform_bus_type, p, &drv->driver,
-                                           (void *)platform_bus_type.match);
+                       d = platform_find_device_by_driver(p, &drv->driver);
                        put_device(p);
                        p = d;