aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-07-03 08:16:30 -0400
committerThierry Reding <treding@nvidia.com>2015-08-13 07:47:55 -0400
commit066d30f8c7547f9ca744cd090092d66847e85de4 (patch)
treeb529fc2e77e27b9281825e68bc39e7528226cac6
parent3ff1f22c882493dcceb25cbca5b516d8e4271151 (diff)
drm/tegra: sor: Reset the correct debugfs fields
When tearing down debugfs support, make sure to reset the fields to NULL in the correct order, otherwise the debugfs root will not be properly removed. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/tegra/sor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index 18b4d892bce2..bad63d0f5f13 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -861,10 +861,10 @@ static void tegra_sor_debugfs_exit(struct tegra_sor *sor)
861 sor->minor = NULL; 861 sor->minor = NULL;
862 862
863 kfree(sor->debugfs_files); 863 kfree(sor->debugfs_files);
864 sor->debugfs = NULL; 864 sor->debugfs_files = NULL;
865 865
866 debugfs_remove_recursive(sor->debugfs); 866 debugfs_remove_recursive(sor->debugfs);
867 sor->debugfs_files = NULL; 867 sor->debugfs = NULL;
868} 868}
869 869
870static void tegra_sor_connector_dpms(struct drm_connector *connector, int mode) 870static void tegra_sor_connector_dpms(struct drm_connector *connector, int mode)