aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index c96ae105b764..0c5f36d1ea3e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -485,7 +485,7 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
485 /* if we are running in a VM, make sure the device 485 /* if we are running in a VM, make sure the device
486 * torn down properly on reboot/shutdown 486 * torn down properly on reboot/shutdown
487 */ 487 */
488 if (adev->virtualization.is_virtual) 488 if (amdgpu_passthrough(adev))
489 amdgpu_pci_remove(pdev); 489 amdgpu_pci_remove(pdev);
490} 490}
491 491