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/i915/i915_debugfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 23fa098c4479..e411ff3ac1fd 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -699,7 +699,7 @@ static const struct file_operations i915_forcewake_fops = { .release = i915_forcewake_release, }; -static const struct drm_info_list i915_debugfs_list[] = { +static const struct drm_debugfs_info i915_debugfs_list[] = { {"i915_capabilities", i915_capabilities, 0}, {"i915_gem_objects", i915_gem_object_info, 0}, {"i915_frequency_info", i915_frequency_info, 0}, @@ -735,9 +735,8 @@ void i915_debugfs_register(struct drm_i915_private *i915) i915_debugfs_files[i].fops); } - drm_debugfs_create_files(i915_debugfs_list, - ARRAY_SIZE(i915_debugfs_list), - debugfs_root, i915->drm.primary); + drm_debugfs_add_files(&i915->drm, i915_debugfs_list, + ARRAY_SIZE(i915_debugfs_list)); i915_gpu_error_debugfs_register(i915); } -- 2.50.1