drm/amdgpu: rename amdgpu_pci_config_reset

add device for consistency with other functions in this file.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2017-12-14 16:22:53 -05:00
parent 9c3f2b5474
commit 8111c38727
4 changed files with 4 additions and 4 deletions

View File

@ -1899,7 +1899,7 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring)
/* Common functions */ /* Common functions */
int amdgpu_gpu_recover(struct amdgpu_device *adev, struct amdgpu_job* job, bool force); int amdgpu_gpu_recover(struct amdgpu_device *adev, struct amdgpu_job* job, bool force);
bool amdgpu_need_backup(struct amdgpu_device *adev); bool amdgpu_need_backup(struct amdgpu_device *adev);
void amdgpu_pci_config_reset(struct amdgpu_device *adev); void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);
bool amdgpu_need_post(struct amdgpu_device *adev); bool amdgpu_need_post(struct amdgpu_device *adev);
void amdgpu_update_display_priority(struct amdgpu_device *adev); void amdgpu_update_display_priority(struct amdgpu_device *adev);

View File

@ -377,7 +377,7 @@ void amdgpu_device_program_register_sequence(struct amdgpu_device *adev,
} }
} }
void amdgpu_pci_config_reset(struct amdgpu_device *adev) void amdgpu_device_pci_config_reset(struct amdgpu_device *adev)
{ {
pci_write_config_dword(adev->pdev, 0x7c, AMDGPU_ASIC_RESET_DATA); pci_write_config_dword(adev->pdev, 0x7c, AMDGPU_ASIC_RESET_DATA);
} }

View File

@ -1246,7 +1246,7 @@ static int cik_gpu_pci_config_reset(struct amdgpu_device *adev)
/* disable BM */ /* disable BM */
pci_clear_master(adev->pdev); pci_clear_master(adev->pdev);
/* reset */ /* reset */
amdgpu_pci_config_reset(adev); amdgpu_device_pci_config_reset(adev);
udelay(100); udelay(100);

View File

@ -667,7 +667,7 @@ static int vi_gpu_pci_config_reset(struct amdgpu_device *adev)
/* disable BM */ /* disable BM */
pci_clear_master(adev->pdev); pci_clear_master(adev->pdev);
/* reset */ /* reset */
amdgpu_pci_config_reset(adev); amdgpu_device_pci_config_reset(adev);
udelay(100); udelay(100);