aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/tegra/dc.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-11-08 13:40:54 +0100
committerThierry Reding <treding@nvidia.com>2017-12-13 13:42:07 +0100
commitb95800eeef09f4853904ec4e926d098f1ca4698a (patch)
tree91252115f544f109d1360bda9d4750cb95992e3c /drivers/gpu/drm/tegra/dc.h
parentdrm/tegra: dc: Reshuffle some code (diff)
downloadwireguard-linux-b95800eeef09f4853904ec4e926d098f1ca4698a.tar.xz
wireguard-linux-b95800eeef09f4853904ec4e926d098f1ca4698a.zip
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.h2
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;