Commit c8e73d1a authored by Noralf Trønnes's avatar Noralf Trønnes Committed by Daniel Vetter

drm/radeon: Remove drm_debugfs_remove_files() call

drm_debugfs_cleanup() now removes all minor->debugfs_list entries
automatically, so it's not necessary to call drm_debugfs_remove_files().

Cc: alexander.deucher@amd.com
Cc: christian.koenig@amd.com
Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-13-noralf@tronnes.org
parent c259e81b
...@@ -1549,8 +1549,6 @@ int radeon_device_init(struct radeon_device *rdev, ...@@ -1549,8 +1549,6 @@ int radeon_device_init(struct radeon_device *rdev,
return r; return r;
} }
static void radeon_debugfs_remove_files(struct radeon_device *rdev);
/** /**
* radeon_device_fini - tear down the driver * radeon_device_fini - tear down the driver
* *
...@@ -1577,7 +1575,6 @@ void radeon_device_fini(struct radeon_device *rdev) ...@@ -1577,7 +1575,6 @@ void radeon_device_fini(struct radeon_device *rdev)
rdev->rmmio = NULL; rdev->rmmio = NULL;
if (rdev->family >= CHIP_BONAIRE) if (rdev->family >= CHIP_BONAIRE)
radeon_doorbell_fini(rdev); radeon_doorbell_fini(rdev);
radeon_debugfs_remove_files(rdev);
} }
...@@ -1954,16 +1951,3 @@ int radeon_debugfs_add_files(struct radeon_device *rdev, ...@@ -1954,16 +1951,3 @@ int radeon_debugfs_add_files(struct radeon_device *rdev,
#endif #endif
return 0; return 0;
} }
static void radeon_debugfs_remove_files(struct radeon_device *rdev)
{
#if defined(CONFIG_DEBUG_FS)
unsigned i;
for (i = 0; i < rdev->debugfs_count; i++) {
drm_debugfs_remove_files(rdev->debugfs[i].files,
rdev->debugfs[i].num_files,
rdev->ddev->primary);
}
#endif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment