From: Alex Deucher Date: Thu, 22 Sep 2016 18:43:50 +0000 (-0400) Subject: drm/radeon: always apply pci shutdown callbacks X-Git-Tag: v4.9-rc1~41^2~9^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a481daa88fd4d6b54f25348972bba10b5f6a84d0;p=linux-2.6-block.git drm/radeon: always apply pci shutdown callbacks We can't properly detect all hypervisors and we need this to properly tear down the hardware. Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 8f779e4ee3a5..d40637858b79 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -364,10 +364,11 @@ static void radeon_pci_shutdown(struct pci_dev *pdev) { /* if we are running in a VM, make sure the device - * torn down properly on reboot/shutdown + * torn down properly on reboot/shutdown. + * unfortunately we can't detect certain + * hypervisors so just do this all the time. */ - if (radeon_device_is_virtual()) - radeon_pci_remove(pdev); + radeon_pci_remove(pdev); } static int radeon_pmops_suspend(struct device *dev)