Replace the use of drm_debugfs_create_files() with the new drm_debugfs_add_files() function, which centers the debugfs files management on the drm_device instead of drm_minor.
Signed-off-by: Brahmajit Das <list...@listout.xyz> --- drivers/gpu/drm/nouveau/nouveau_debugfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c index c7869a639bef..e14b19d4a000 100644 --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c @@ -249,7 +249,7 @@ static const struct file_operations nouveau_pstate_fops = { .release = single_release, }; -static struct drm_info_list nouveau_debugfs_list[] = { +static struct drm_debugfs_info nouveau_debugfs_list[] = { { "vbios.rom", nouveau_debugfs_vbios_image, 0, NULL }, { "strap_peek", nouveau_debugfs_strap_peek, 0, NULL }, DRM_DEBUGFS_GPUVA_INFO(nouveau_debugfs_gpuva, NULL), @@ -277,9 +277,8 @@ nouveau_drm_debugfs_init(struct drm_minor *minor) nouveau_debugfs_files[i].fops); } - drm_debugfs_create_files(nouveau_debugfs_list, - NOUVEAU_DEBUGFS_ENTRIES, - minor->debugfs_root, minor); + drm_debugfs_add_files(minor->dev, nouveau_debugfs_list, + NOUVEAU_DEBUGFS_ENTRIES); /* Set the size of the vbios since we know it, and it's confusing to * userspace if it wants to seek() but the file has a length of 0 -- 2.50.1