DEFINE_DRM_ACCEL_FOPS() now wires .show_fdinfo to drm_show_fdinfo() by default (evaluating to NULL when CONFIG_PROC_FS is disabled). Migrate the driver to use DEFINE_DRM_ACCEL_FOPS().
Signed-off-by: Fei Shao <[email protected]> --- drivers/accel/ivpu/ivpu_drv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c index 28cb18dcfa9b..933edc272f05 100644 --- a/drivers/accel/ivpu/ivpu_drv.c +++ b/drivers/accel/ivpu/ivpu_drv.c @@ -609,13 +609,7 @@ int ivpu_shutdown(struct ivpu_device *vdev) return ret; } -static const struct file_operations ivpu_fops = { - .owner = THIS_MODULE, - DRM_ACCEL_FOPS, -#ifdef CONFIG_PROC_FS - .show_fdinfo = drm_show_fdinfo, -#endif -}; +DEFINE_DRM_ACCEL_FOPS(ivpu_fops); static int ivpu_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_file *file_priv, u32 handle, u32 flags, int *prime_fd) -- 2.56.1.839.g22a8290db9-goog
