drm/amdgpu/pm: Remove gpu_od if it's an empty directory
authorMa Jun <Jun.Ma2@amd.com>
Tue, 16 Apr 2024 09:30:12 +0000 (17:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Apr 2024 03:22:46 +0000 (23:22 -0400)
commit0e95ed6452cb079cf9587c774a475a7d83c7e040
tree8be9dd4d554ef75d3b012d6c1f807d7a951434bc
parent9c783a11214553a54f0915a7260a3ce624d36bf2
drm/amdgpu/pm: Remove gpu_od if it's an empty directory

gpu_od should be removed if it's an empty directory

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reported-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/amdgpu_pm.c