drm/atomic: cleanup debugfs entries on un-registering the driver.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 17 Nov 2016 11:41:29 +0000 (11:41 +0000)
committerSean Paul <seanpaul@chromium.org>
Mon, 21 Nov 2016 18:22:08 +0000 (13:22 -0500)
commit8c0b55e22aff84cb6938a993d86c3ce02006236e
treedd707a1724fffe633a9c42924a9b92add14e3bd5
parentcf590b8732701778c067ed4dff579fa2d7ac251e
drm/atomic: cleanup debugfs entries on un-registering the driver.

Cleanup the debugfs entries created by
commit 6559c901cb48:  drm/atomic: add debugfs file to dump out atomic state
when the driver's minor gets un-registered. Without it, DRM drivers
compiled as modules cannot be rmmod-ed and modprobed again.

Tested-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161117114129.2627-1-Liviu.Dudau@arm.com
Fixes: 6559c901cb48 ("drm/atomic: add debugfs file to dump out atomic state")
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_debugfs.c
include/drm/drm_atomic.h