drm/gud: use new debugfs device-centered functions
authorMaíra Canal <mcanal@igalia.com>
Mon, 26 Dec 2022 15:50:22 +0000 (12:50 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Fri, 6 Jan 2023 19:15:08 +0000 (16:15 -0300)
commitc702545e19ebb6113d607f2a30ba2ee6cf881a3a
treee7ae9aa3cf8b07a8574f1c7129ad9778b53b4c9d
parentd3533a8af48479a1af1a8fa7fcb0e5161398c94e
drm/gud: use new debugfs device-centered functions

Replace the use of drm_debugfs_create_files() with the new
drm_debugfs_add_file() function, which center the debugfs files
management on the drm_device instead of drm_minor. Moreover, remove the
debugfs_init hook and add the debugfs files directly on gud_probe(),
before drm_dev_register().

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221226155029.244355-3-mcanal@igalia.com
drivers/gpu/drm/gud/gud_drv.c