drm/tegra: hdmi: Register debugfs in ->late_register()
authorThierry Reding <treding@nvidia.com>
Wed, 8 Nov 2017 12:18:31 +0000 (13:18 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 12:42:07 +0000 (13:42 +0100)
commit1d60047dd6fcd8bb840f3652ce25ab478a69c7ef
tree9c57499821756e1b61ff25bbbdcc900d1fe3a3ae
parenta813d70425061ad59bc8f980ae822f4fc35c9250
drm/tegra: hdmi: 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>
drivers/gpu/drm/tegra/hdmi.c