drm/amdgpu: Correct the place of amdgpu_pm_sysfs_fini
authorEmily Deng <Emily.Deng@amd.com>
Thu, 8 Mar 2018 01:35:19 +0000 (09:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 19:38:25 +0000 (14:38 -0500)
commit58e955d9defad833f9a23c38521d7bbf01097b1d
tree8af7068e85cd4dfef39e1858a38b8534279ab9bb
parente89d0d332b7554f149648d293c2b6c77b79be529
drm/amdgpu: Correct the place of amdgpu_pm_sysfs_fini

The amdgpu_pm_sysfs_fini should call before amdgpu_device_ip_fini,
or the adev->pm.dpm_enabled would be set to 0, then the device files
related to pp won't be removed by amdgpu_pm_sysfs_fini when unload
driver.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c