summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2007-05-10 13:16:05 +0100
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2007-05-10 13:16:05 +0100
commiteba00df1203040905d38bf0ef449d25d6dbdb72c (patch)
tree15c4febadc3ad69250963876b16af25123f8c9fa /shared-core
parent45e09ea3cf85b76c18fb92a593ca7c40681052a7 (diff)
Just some minor cleanups.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_drv.h1
-rw-r--r--shared-core/i915_init.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h
index 946e464f..0513eed8 100644
--- a/shared-core/i915_drv.h
+++ b/shared-core/i915_drv.h
@@ -221,6 +221,7 @@ extern void i915_emit_breadcrumb(drm_device_t *dev);
extern void i915_dispatch_flip(drm_device_t * dev, int pipes, int sync);
extern int i915_emit_mi_flush(drm_device_t *dev, uint32_t flush);
extern int i915_driver_firstopen(struct drm_device *dev);
+extern int i915_dma_cleanup(drm_device_t * dev);
/* i915_irq.c */
extern int i915_irq_emit(DRM_IOCTL_ARGS);
diff --git a/shared-core/i915_init.c b/shared-core/i915_init.c
index 0c9ef4d4..43040e6e 100644
--- a/shared-core/i915_init.c
+++ b/shared-core/i915_init.c
@@ -202,7 +202,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
/* FIXME: need wrapper with PCI mem checks */
ret = drm_mem_reg_ioremap(dev, &dev_priv->ring_buffer->mem,
- &dev_priv->ring.virtual_start);
+ (void **) &dev_priv->ring.virtual_start);
if (ret)
DRM_ERROR("error mapping ring buffer: %d\n", ret);