drm/tegra: sor: Set minor after debugfs initialization
authorThierry Reding <treding@nvidia.com>
Fri, 3 Jul 2015 12:14:29 +0000 (14:14 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 11:47:53 +0000 (13:47 +0200)
The DRM minor is needed to teardown debugfs, so it needs to be tracked
to prevent a crash on driver removal.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c

index 7df7328f9fedc165f7fa13c231f0f353ef38dad7..18b4d892bce26e30c025adfc2ed674f8fc2ec24c 100644 (file)
@@ -841,6 +841,8 @@ static int tegra_sor_debugfs_init(struct tegra_sor *sor,
                goto free;
        }
 
+       sor->minor = minor;
+
        return err;
 
 free: