diff options
| author | Andrey Grodzovsky <[email protected]> | 2020-10-16 14:50:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-10-16 19:11:17 +0000 |
| commit | 23d9bd60bd116c31936d012d79ba0e9972bafa9c (patch) | |
| tree | 600aa5c4f21516c5d42ef58d647e9eed173a8ce9 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
| parent | drm/amd/display: Fix DCN302 makefile (diff) | |
| download | kernel-23d9bd60bd116c31936d012d79ba0e9972bafa9c.tar.gz kernel-23d9bd60bd116c31936d012d79ba0e9972bafa9c.zip | |
drm/amd/psp: Fix sysfs: cannot create duplicate filename
psp sysfs not cleaned up on driver unload for sienna_cichlid
Fixes: ce87c98db428e7 ("drm/amdgpu: Include sienna_cichlid in USBC PD FW support.")
Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 803b3abf2805..675b14a22f04 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -210,7 +210,8 @@ static int psp_sw_fini(void *handle) adev->psp.ta_fw = NULL; } - if (adev->asic_type == CHIP_NAVI10) + if (adev->asic_type == CHIP_NAVI10 || + adev->asic_type == CHIP_SIENNA_CICHLID) psp_sysfs_fini(adev); return 0; |
