mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 16:40:55 +07:00
drm: cleanup properly on drm module unload
Cleanup multiple cards properly Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
8d2ea62581
commit
aab8df141f
@ -342,12 +342,12 @@ void drm_exit(struct drm_driver *driver)
|
||||
if (head->dev->driver != driver)
|
||||
continue;
|
||||
dev = head->dev;
|
||||
}
|
||||
if (dev) {
|
||||
/* release the pci driver */
|
||||
if (dev->pdev)
|
||||
pci_dev_put(dev->pdev);
|
||||
drm_cleanup(dev);
|
||||
if (dev) {
|
||||
/* release the pci driver */
|
||||
if (dev->pdev)
|
||||
pci_dev_put(dev->pdev);
|
||||
drm_cleanup(dev);
|
||||
}
|
||||
}
|
||||
DRM_INFO("Module unloaded\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user