]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm: debugfs: Remove all files automatically on cleanup
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:03 +0000 (23:56 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Jan 2017 07:55:21 +0000 (08:55 +0100)
commit086f2e5cde747dcae800b2d8b0ac7741a8c6fcbe
treed847524301fd8ac7ee78715f139012b1605d81eb
parent73f1a5858bf82f3bf2326af2d2adea7305c830de
drm: debugfs: Remove all files automatically on cleanup

Instead of having the drivers call drm_debugfs_remove_files() in
their drm_driver->debugfs_cleanup hook, do it automatically by
traversing minor->debugfs_list.
Also use debugfs_remove_recursive() so drivers who add their own
debugfs files don't have to keep track of them for removal.

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-2-noralf@tronnes.org
drivers/gpu/drm/drm_debugfs.c