Merge tag 'drm-next-2019-09-18' of git://anongit.freedesktop.org/drm/drm
[linux-2.6-block.git] / drivers / gpu / drm / exynos / exynos_drm_drv.c
index 8a03a33c32cb901bfa4d053b7a6cb3908f9fd4ca..ba0f868b2477f667168bc5ff0406d8f84ca64a44 100644 (file)
@@ -249,9 +249,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
                if (!info->driver || !(info->flags & DRM_COMPONENT_DRIVER))
                        continue;
 
-               while ((d = bus_find_device(&platform_bus_type, p,
-                                           &info->driver->driver,
-                                           (void *)platform_bus_type.match))) {
+               while ((d = platform_find_device_by_driver(p, &info->driver->driver))) {
                        put_device(p);
 
                        if (!(info->flags & DRM_FIMC_DEVICE) ||
@@ -419,9 +417,8 @@ static void exynos_drm_unregister_devices(void)
                if (!info->driver || !(info->flags & DRM_VIRTUAL_DEVICE))
                        continue;
 
-               while ((dev = bus_find_device(&platform_bus_type, NULL,
-                                           &info->driver->driver,
-                                           (void *)platform_bus_type.match))) {
+               while ((dev = platform_find_device_by_driver(NULL,
+                                               &info->driver->driver))) {
                        put_device(dev);
                        platform_device_unregister(to_platform_device(dev));
                }