diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-08 13:40:54 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-12-13 13:42:07 +0100 |
commit | b95800eeef09f4853904ec4e926d098f1ca4698a (patch) | |
tree | 91252115f544f109d1360bda9d4750cb95992e3c /drivers/gpu/drm/tegra/dc.h | |
parent | c49c81e21ce1a646c1402597d12137c679ac7f71 (diff) | |
download | linux-b95800eeef09f4853904ec4e926d098f1ca4698a.tar.bz2 |
drm/tegra: dc: Register debugfs in ->late_register()
The ->late_register() and ->early_unregister() callbacks are called at
the right time to make sure userspace only accesses interfaces when it
should. Move debugfs registration and unregistration to these callback
functions to avoid potential races with userspace.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.h')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h index cb100b6e3282..032c734dd470 100644 --- a/drivers/gpu/drm/tegra/dc.h +++ b/drivers/gpu/drm/tegra/dc.h @@ -56,8 +56,6 @@ struct tegra_dc { struct list_head list; struct drm_info_list *debugfs_files; - struct drm_minor *minor; - struct dentry *debugfs; /* page-flip handling */ struct drm_pending_vblank_event *event; |