Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: Clean up code in radeon_pci_shutdown()

This fixes the formatting on one comment and consolidates the
pci_get_drvdata() into the radeon_suspend_kms().

Signed-off-by: Kyle Mahlkuch <kmahlkuc@linux.vnet.ibm.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

KyleMahlkuch and committed by
Alex Deucher
4cae34d0 90124562

+3 -6
+3 -6
drivers/gpu/drm/radeon/radeon_drv.c
··· 379 379 static void 380 380 radeon_pci_shutdown(struct pci_dev *pdev) 381 381 { 382 - #ifdef CONFIG_PPC64 383 - struct drm_device *ddev = pci_get_drvdata(pdev); 384 - #endif 385 - 386 382 /* if we are running in a VM, make sure the device 387 383 * torn down properly on reboot/shutdown 388 384 */ ··· 386 390 radeon_pci_remove(pdev); 387 391 388 392 #ifdef CONFIG_PPC64 389 - /* Some adapters need to be suspended before a 393 + /* 394 + * Some adapters need to be suspended before a 390 395 * shutdown occurs in order to prevent an error 391 396 * during kexec. 392 397 * Make this power specific becauase it breaks 393 398 * some non-power boards. 394 399 */ 395 - radeon_suspend_kms(ddev, true, true, false); 400 + radeon_suspend_kms(pci_get_drvdata(pdev), true, true, false); 396 401 #endif 397 402 } 398 403