summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2012-09-07 10:22:09 -0500
committerDave Airlie <airlied@gmail.com>2012-10-04 06:28:30 -0400
commitc5a9a41dd9b7447c06182ffa51b0afe526b8bf4c (patch)
treee6df8542c9e991f85902e8f9851a074382f82baa /drivers/gpu/drm/nouveau
parent43ea112369efe8952fdbd60037013e081b0dcdc6 (diff)
drm/pci: Add drm_put_pci_dev()
When deferred initialization support for pci devices is added some additional cleanup will be needed. Add a pci-specific put function to serve this purpose, and convert the pci drivers over to using it. For now it just calls drm_put_dev(), so this commit has no functional change. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index e96507e11488..a3f80a7033fa 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -385,7 +385,7 @@ nouveau_drm_remove(struct pci_dev *pdev)
struct nouveau_object *device;
device = drm->client.base.device;
- drm_put_dev(dev);
+ drm_put_pci_dev(dev);
nouveau_object_ref(NULL, &device);
nouveau_object_debug();