diff options
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.c')
| -rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.c | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index bf11930e40e1..5e6fb6c2307f 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -23,16 +23,21 @@  #include <linux/clk.h>  #include <linux/component.h>  #include <linux/device.h> +#include <linux/dma-mapping.h>  #include <linux/io.h>  #include <linux/module.h>  #include <linux/of_platform.h>  #include <linux/platform_device.h>  #include <linux/pm_runtime.h> + +#include <drm/drm_atomic_helper.h> +#include <drm/drm_drv.h>  #include <drm/drm_fb_cma_helper.h>  #include <drm/drm_fb_helper.h> -#include <drm/drm_atomic_helper.h> +#include <drm/drm_vblank.h>  #include "uapi/drm/vc4_drm.h" +  #include "vc4_drv.h"  #include "vc4_regs.h" @@ -177,7 +182,6 @@ static struct drm_driver vc4_drm_driver = {  			    DRIVER_ATOMIC |  			    DRIVER_GEM |  			    DRIVER_RENDER | -			    DRIVER_PRIME |  			    DRIVER_SYNCOBJ),  	.open = vc4_open,  	.postclose = vc4_close, @@ -199,7 +203,6 @@ static struct drm_driver vc4_drm_driver = {  	.prime_handle_to_fd = drm_gem_prime_handle_to_fd,  	.prime_fd_to_handle = drm_gem_prime_fd_to_handle, -	.gem_prime_import = drm_gem_prime_import,  	.gem_prime_export = vc4_prime_export,  	.gem_prime_get_sg_table	= drm_gem_cma_prime_get_sg_table,  	.gem_prime_import_sg_table = vc4_prime_import_sg_table, @@ -237,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;  |