Commit 59aebe2b authored by Alex Deucher's avatar Alex Deucher

Revert "drm/radeon: Implement radeon_pci_shutdown"

This causes a race condition between drm_dev_unregister()
and pci_driver.shutdown at shutdown or driver unload time.

We need to revisit how to properly support kexec within
the drm.

This reverts commit 846ae41a.
parent 227ae10f
...@@ -508,15 +508,6 @@ static const struct file_operations radeon_driver_kms_fops = { ...@@ -508,15 +508,6 @@ static const struct file_operations radeon_driver_kms_fops = {
#endif #endif
}; };
static void
radeon_pci_shutdown(struct pci_dev *pdev)
{
struct drm_device *dev = pci_get_drvdata(pdev);
radeon_driver_unload_kms(dev);
}
static struct drm_driver kms_driver = { static struct drm_driver kms_driver = {
.driver_features = .driver_features =
DRIVER_USE_AGP | DRIVER_USE_AGP |
...@@ -586,7 +577,6 @@ static struct pci_driver radeon_kms_pci_driver = { ...@@ -586,7 +577,6 @@ static struct pci_driver radeon_kms_pci_driver = {
.probe = radeon_pci_probe, .probe = radeon_pci_probe,
.remove = radeon_pci_remove, .remove = radeon_pci_remove,
.driver.pm = &radeon_pm_ops, .driver.pm = &radeon_pm_ops,
.shutdown = radeon_pci_shutdown,
}; };
static int __init radeon_init(void) static int __init radeon_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment