Skip to content

Commit

Permalink
drm/qxl: Remove qxl_debugfs_takedown()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Noralf Trønnes authored and Daniel Vetter committed Mar 1, 2017
1 parent e663112 commit cc14d46
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions drivers/gpu/drm/qxl/qxl_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/qxl/qxl_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/qxl/qxl_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cc14d46

Please sign in to comment.