drm/sti: Remove drm_debugfs_remove_files() calls
drm_debugfs_cleanup() now removes all minor->debugfs_list entries automatically, so it's not necessary to call drm_debugfs_remove_files(). Additionally it uses debugfs_remove_recursive() to clean up the debugfs files, so no need for adding fake drm_info_node entries. Cc: benjamin.gaignard@linaro.org Cc: vincent.abriou@st.com Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Vincent Abriou <vincent.abriou@st.com> Tested-by: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-14-noralf@tronnes.org
This commit is contained in:

committed by
Daniel Vetter

parent
c8e73d1a26
commit
fc3706ea00
@@ -195,13 +195,6 @@ static struct drm_info_list dvo_debugfs_files[] = {
|
||||
{ "dvo", dvo_dbg_show, 0, NULL },
|
||||
};
|
||||
|
||||
static void dvo_debugfs_exit(struct sti_dvo *dvo, struct drm_minor *minor)
|
||||
{
|
||||
drm_debugfs_remove_files(dvo_debugfs_files,
|
||||
ARRAY_SIZE(dvo_debugfs_files),
|
||||
minor);
|
||||
}
|
||||
|
||||
static int dvo_debugfs_init(struct sti_dvo *dvo, struct drm_minor *minor)
|
||||
{
|
||||
unsigned int i;
|
||||
@@ -514,9 +507,6 @@ static void sti_dvo_unbind(struct device *dev,
|
||||
struct device *master, void *data)
|
||||
{
|
||||
struct sti_dvo *dvo = dev_get_drvdata(dev);
|
||||
struct drm_device *drm_dev = data;
|
||||
|
||||
dvo_debugfs_exit(dvo, drm_dev->primary);
|
||||
|
||||
drm_bridge_remove(dvo->bridge);
|
||||
}
|
||||
|
Reference in New Issue
Block a user