diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-11 22:32:51 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-11 22:32:51 +1100 |
commit | aab8df141fdc4c4c9587521a24b6865390eaeb79 (patch) | |
tree | 073c4a8a7bf0ea2d72c73eba48fcd4f7e7e23b03 /drivers | |
parent | 8d2ea6258123d7a92a1f6ec638a8cad4a0604c43 (diff) | |
download | op-kernel-dev-aab8df141fdc4c4c9587521a24b6865390eaeb79.zip op-kernel-dev-aab8df141fdc4c4c9587521a24b6865390eaeb79.tar.gz |
drm: cleanup properly on drm module unload
Cleanup multiple cards properly
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/drm/drm_drv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c index 5714d7b..c4fa5a2 100644 --- a/drivers/char/drm/drm_drv.c +++ b/drivers/char/drm/drm_drv.c @@ -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"); } |