]> git.baikalelectronics.ru Git - 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)
commit7d621df6f09e4fac6819de4d325b497895936cdf
treed847524301fd8ac7ee78715f139012b1605d81eb
parent96d2c4cfc6d95d4319d6e8f4b4c96e6bb87179a1
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