drm/amdgpu: fix ras ctrl debugfs node leak
authorGuchun Chen <guchun.chen@amd.com>
Mon, 16 Sep 2019 05:42:46 +0000 (13:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 20:30:38 +0000 (15:30 -0500)
commit012dd14d1de63b7443a8cec4ad9046c85a7184a5
treef083d2b4e663b93d6dcb4a53a2118e6ab5009bed
parent1313dacfadc502655942def39079c6a36b3dddb7
drm/amdgpu: fix ras ctrl debugfs node leak

Use debugfs_remove_recursive to remove the whole debugfs
directory instead of removing the node one by one.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h