summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvd0_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-09 05:36:33 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 13:01:33 +0400
commit2a44e4997c5fee8e1da1589ff57e0bd1c53f03ce (patch)
tree26fa7eb5269183d1fbc5314db7cad4f4a8abc720 /drivers/gpu/drm/nouveau/nvd0_display.c
parentd2edab4acffb35a6e24259886d377774efd37e6e (diff)
downloadlinux-2a44e4997c5fee8e1da1589ff57e0bd1c53f03ce.tar.xz
drm/nouveau/disp: introduce proper init/fini, separate from create/destroy
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvd0_display.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvd0_display.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c
index 75f995852796..614c6520a520 100644
--- a/drivers/gpu/drm/nouveau/nvd0_display.c
+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
@@ -1341,7 +1341,7 @@ nvd0_display_intr(struct drm_device *dev)
/******************************************************************************
* Init
*****************************************************************************/
-static void
+void
nvd0_display_fini(struct drm_device *dev)
{
int i;
@@ -1461,8 +1461,6 @@ nvd0_display_destroy(struct drm_device *dev)
struct nvd0_display *disp = nvd0_display(dev);
struct pci_dev *pdev = dev->pdev;
- nvd0_display_fini(dev);
-
pci_free_consistent(pdev, PAGE_SIZE, disp->evo[0].ptr, disp->evo[0].handle);
nouveau_gpuobj_ref(NULL, &disp->mem);
nouveau_irq_unregister(dev, 26);
@@ -1588,10 +1586,6 @@ nvd0_display_create(struct drm_device *dev)
goto out;
}
- ret = nvd0_display_init(dev);
- if (ret)
- goto out;
-
out:
if (ret)
nvd0_display_destroy(dev);