diff options
author | Dave Airlie <airlied@linux.ie> | 2006-02-18 02:38:07 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-02-18 02:38:07 +0000 |
commit | 585f34c3e533cafd687beba161d6d0379b52bb47 (patch) | |
tree | 62c689f9a8b9c896d52b4eb52e8ecda47e5ae55e | |
parent | ff9ecc09f98a345078554bac2992f96adde9038f (diff) |
fix card unload
-rw-r--r-- | linux-core/drm_drv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 5c25fe7c..e422888c 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -394,12 +394,12 @@ void __exit 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); + } } } else pci_unregister_driver(&driver->pci_driver); |