Re: [PATCH 01/19] drm: debugfs: Remove all files automatically on cleanup

2017-01-27 Thread Daniel Vetter
On Thu, Jan 26, 2017 at 11:56:03PM +0100, Noralf Trønnes wrote: > 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 >

[PATCH 01/19] drm: debugfs: Remove all files automatically on cleanup

2017-01-26 Thread Noralf Trønnes
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.