drm/tegra: sor: Set minor after debugfs initialization

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>
This commit is contained in:
Thierry Reding 2015-07-03 14:14:29 +02:00
parent 4dbdc740c4
commit 3ff1f22c88
1 changed files with 2 additions and 0 deletions

View File

@ -841,6 +841,8 @@ static int tegra_sor_debugfs_init(struct tegra_sor *sor,
goto free;
}
sor->minor = minor;
return err;
free: