summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_dma.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-11-23 23:03:18 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-11-23 23:03:18 +0000
commita52d9c448e05253d8fc46eec1b2b2c80f0a7223a (patch)
tree597fa3dfecdcd11eba408d7058d1c2f32bb31dd5 /sys/dev/pci/drm/i915_dma.c
parent385d9ade05163bd9bb275d7afe77fe6fd9bf14d4 (diff)
move the lastclose function into i915_drv.c where it belongs.
kill some more dead protos while i'm touching the lines around them anyway.
Diffstat (limited to 'sys/dev/pci/drm/i915_dma.c')
-rw-r--r--sys/dev/pci/drm/i915_dma.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pci/drm/i915_dma.c b/sys/dev/pci/drm/i915_dma.c
index 4e79f63ea4e..5e113abb926 100644
--- a/sys/dev/pci/drm/i915_dma.c
+++ b/sys/dev/pci/drm/i915_dma.c
@@ -77,7 +77,7 @@ void i915_free_hws(drm_i915_private_t *dev_priv, bus_dma_tag_t dmat)
dev_priv->hw_status_page = NULL;
}
-static int i915_dma_cleanup(struct drm_device * dev)
+int i915_dma_cleanup(struct drm_device *dev)
{
drm_i915_private_t *dev_priv = dev->dev_private;
@@ -630,14 +630,3 @@ int i915_set_status_page(struct drm_device *dev, void *data,
return 0;
}
-void i915_driver_lastclose(struct drm_device * dev)
-{
- drm_i915_private_t *dev_priv = dev->dev_private;
-
- if (dev_priv == NULL)
- return;
-
- dev_priv->sarea_priv = NULL;
-
- i915_dma_cleanup(dev);
-}