mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00: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
1 changed files with 6 additions and 6 deletions
|
@ -342,13 +342,13 @@ 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);
|
||||
}
|
||||
}
|
||||
DRM_INFO("Module unloaded\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue