Merge tag 'drm-next-2019-09-18' of git://anongit.freedesktop.org/drm/drm
[linux-2.6-microblaze.git] / drivers / gpu / drm / vc4 / vc4_drv.c
index 048c70a..5e6fb6c 100644 (file)
@@ -240,8 +240,7 @@ static void vc4_match_add_drivers(struct device *dev,
                struct device_driver *drv = &drivers[i]->driver;
                struct device *p = NULL, *d;
 
-               while ((d = bus_find_device(&platform_bus_type, p, drv,
-                                           (void *)platform_bus_type.match))) {
+               while ((d = platform_find_device_by_driver(p, drv))) {
                        put_device(p);
                        component_match_add(dev, match, compare_dev, d);
                        p = d;