aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/i915.h2
-rw-r--r--shared/i915_dma.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared/i915.h b/shared/i915.h
index f7832e21..2744d0e6 100644
--- a/shared/i915.h
+++ b/shared/i915.h
@@ -64,7 +64,7 @@
drm_i915_private_t *dev_priv = dev->dev_private; \
i915_mem_takedown( &(dev_priv->agp_heap) ); \
} \
- i915_cleanup( dev ); \
+ i915_dma_cleanup( dev ); \
} while (0)
diff --git a/shared/i915_dma.c b/shared/i915_dma.c
index 28820378..fc1b356f 100644
--- a/shared/i915_dma.c
+++ b/shared/i915_dma.c
@@ -81,7 +81,7 @@ void i915_kernel_lost_context(drm_device_t *dev)
}
-static int i915_dma_cleanup(drm_device_t *dev)
+int i915_dma_cleanup(drm_device_t *dev)
{
/* Make sure interrupts are disabled here because the uninstall ioctl
* may not have been called from userspace and after dev_private