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)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:28 +0000 (15:54 +0100)
commitabd78c8e7410b2c3979f1af530ee17c2d0806d1a
tree293a6b0b9f0654882bb5dc7363620103e4a22963
parent2ad0bc7fe2645a1a0c0f6e1034720c1d296c0e7e
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
[rebased on 4.9]
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/gpu/drm/drm_debugfs.c