diff options
author | Christian König <ckoenig.leichtzumerken@gmail.com> | 2023-08-29 14:01:15 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-09-01 09:54:12 +0300 |
commit | 8e455145d8f163aefa6b9cc29478e0a9f82276e6 (patch) | |
tree | 1982ae8ad414d199d9dcee6533e3ef3d7e8afca0 /drivers/gpu/drm/tegra/dsi.c | |
parent | ec9c7073bb082412a49466059053ace537c1a30d (diff) | |
download | linux-8e455145d8f163aefa6b9cc29478e0a9f82276e6.tar.xz |
drm/debugfs: rework drm_debugfs_create_files implementation v2
Use managed memory allocation for this. That allows us to not keep
track of all the files any more.
v2: keep drm_debugfs_cleanup(), but rename to drm_debugfs_unregister(),
we still need to cleanup the symlink
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230829110115.3442-6-christian.koenig@amd.com
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index a9870c828374..fbfe92a816d4 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -256,6 +256,7 @@ static void tegra_dsi_early_unregister(struct drm_connector *connector) struct tegra_dsi *dsi = to_dsi(output); drm_debugfs_remove_files(dsi->debugfs_files, count, + connector->debugfs_entry, connector->dev->primary); kfree(dsi->debugfs_files); dsi->debugfs_files = NULL; |