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/display/intel_display_debugfs.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c 
b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index ce3f9810c42d..92db369f1b94 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -805,7 +805,7 @@ static const struct file_operations 
i915_fifo_underrun_reset_ops = {
        .llseek = default_llseek,
 };
 
-static const struct drm_info_list intel_display_debugfs_list[] = {
+static const struct drm_debugfs_info intel_display_debugfs_list[] = {
        {"intel_display_caps", intel_display_caps, 0},
        {"i915_frontbuffer_tracking", i915_frontbuffer_tracking, 0},
        {"i915_sr_status", i915_sr_status, 0},
@@ -825,9 +825,8 @@ void intel_display_debugfs_register(struct intel_display 
*display)
        debugfs_create_file("i915_fifo_underrun_reset", 0644, 
minor->debugfs_root,
                            display, &i915_fifo_underrun_reset_ops);
 
-       drm_debugfs_create_files(intel_display_debugfs_list,
-                                ARRAY_SIZE(intel_display_debugfs_list),
-                                minor->debugfs_root, minor);
+       drm_debugfs_add_files(minor->dev, intel_display_debugfs_list,
+                             ARRAY_SIZE(intel_display_debugfs_list));
 
        intel_bios_debugfs_register(display);
        intel_cdclk_debugfs_register(display);
-- 
2.50.1

Reply via email to