diff options
author | Christian König <ckoenig.leichtzumerken@gmail.com> | 2023-08-29 13:01:15 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-09-01 08:54:12 +0200 |
commit | 8e455145d8f163aefa6b9cc29478e0a9f82276e6 (patch) | |
tree | 1982ae8ad414d199d9dcee6533e3ef3d7e8afca0 /drivers/gpu/drm/drm_drv.c | |
parent | ec9c7073bb082412a49466059053ace537c1a30d (diff) | |
download | lwn-8e455145d8f163aefa6b9cc29478e0a9f82276e6.tar.gz lwn-8e455145d8f163aefa6b9cc29478e0a9f82276e6.zip |
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/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 45053f3371ca..535f16e7882e 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -198,7 +198,7 @@ static int drm_minor_register(struct drm_device *dev, enum drm_minor_type type) return 0; err_debugfs: - drm_debugfs_cleanup(minor); + drm_debugfs_unregister(minor); return ret; } @@ -222,7 +222,7 @@ static void drm_minor_unregister(struct drm_device *dev, enum drm_minor_type typ device_del(minor->kdev); dev_set_drvdata(minor->kdev, NULL); /* safety belt */ - drm_debugfs_cleanup(minor); + drm_debugfs_unregister(minor); } /* |