]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/qxl: Remove qxl_debugfs_takedown()
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:20 +0000 (23:56 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Mar 2017 15:09:52 +0000 (16:09 +0100)
drm_debugfs_cleanup() now removes all minor->debugfs_list entries
automatically, so the drm_driver.debugfs_cleanup callback is not
needed.

Cc: airlied@linux.ie
Cc: kraxel@redhat.com
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-19-noralf@tronnes.org
drivers/gpu/drm/qxl/qxl_debugfs.c
drivers/gpu/drm/qxl/qxl_drv.c
drivers/gpu/drm/qxl/qxl_drv.h

index d58751c94618a9209cda2198003ab7b4849b1b9d..8e6c7800322626c8eb7d71cbc1afc9140b418a11 100644 (file)
@@ -100,15 +100,6 @@ qxl_debugfs_init(struct drm_minor *minor)
        return 0;
 }
 
-void
-qxl_debugfs_takedown(struct drm_minor *minor)
-{
-#if defined(CONFIG_DEBUG_FS)
-       drm_debugfs_remove_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES,
-                                minor);
-#endif
-}
-
 int qxl_debugfs_add_files(struct qxl_device *qdev,
                          struct drm_info_list *files,
                          unsigned nfiles)
index 215ef001b718a87f0a6c91805675bffc21b7d1dd..abf7b8360361b854764c9d679163c971ec4ed05c 100644 (file)
@@ -269,7 +269,6 @@ static struct drm_driver qxl_driver = {
        .dumb_destroy = drm_gem_dumb_destroy,
 #if defined(CONFIG_DEBUG_FS)
        .debugfs_init = qxl_debugfs_init,
-       .debugfs_cleanup = qxl_debugfs_takedown,
 #endif
        .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
        .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
index 0c313e5636322918a69b9891d65205f5aee99017..c0481706e4b02a5580d2cc6515eaa7a2133d5479 100644 (file)
@@ -523,7 +523,6 @@ int qxl_garbage_collect(struct qxl_device *qdev);
 /* debugfs */
 
 int qxl_debugfs_init(struct drm_minor *minor);
-void qxl_debugfs_takedown(struct drm_minor *minor);
 int qxl_ttm_debugfs_init(struct qxl_device *qdev);
 
 /* qxl_prime.c */