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

orang tua
c8e73d1a26
melakukan
fc3706ea00
@@ -365,13 +365,6 @@ static struct drm_info_list hda_debugfs_files[] = {
|
||||
{ "hda", hda_dbg_show, 0, NULL },
|
||||
};
|
||||
|
||||
static void hda_debugfs_exit(struct sti_hda *hda, struct drm_minor *minor)
|
||||
{
|
||||
drm_debugfs_remove_files(hda_debugfs_files,
|
||||
ARRAY_SIZE(hda_debugfs_files),
|
||||
minor);
|
||||
}
|
||||
|
||||
static int hda_debugfs_init(struct sti_hda *hda, struct drm_minor *minor)
|
||||
{
|
||||
unsigned int i;
|
||||
@@ -739,10 +732,6 @@ err_sysfs:
|
||||
static void sti_hda_unbind(struct device *dev,
|
||||
struct device *master, void *data)
|
||||
{
|
||||
struct sti_hda *hda = dev_get_drvdata(dev);
|
||||
struct drm_device *drm_dev = data;
|
||||
|
||||
hda_debugfs_exit(hda, drm_dev->primary);
|
||||
}
|
||||
|
||||
static const struct component_ops sti_hda_ops = {
|
||||
|
Reference in New Issue
Block a user