aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i915_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-12-16 18:41:56 -0500
committerDave Airlie <airlied@redhat.com>2008-02-07 00:09:39 -0500
commite3236a1173222ca209d20bb29f6c1cd3499aa845 (patch)
tree121840ba613aaad6c5d54cc694fade494f68a83b /drivers/char/drm/i915_dma.c
parent77e27e9fe5bd399c9f56b941b212a58338e94463 (diff)
drm: add _DRM_DRIVER flag, and re-order unload.
Allow drivers to addmaps that won't be removed by lastclose or unload. The unload needs to be re-ordered to avoid removing the hashs before the driver has removed the final maps. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i915_dma.c')
-rw-r--r--drivers/char/drm/i915_dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/drm/i915_dma.c b/drivers/char/drm/i915_dma.c
index b8db9652e9dd..24f86e07d6a4 100644
--- a/drivers/char/drm/i915_dma.c
+++ b/drivers/char/drm/i915_dma.c
@@ -778,7 +778,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
778 base = drm_get_resource_start(dev, mmio_bar); 778 base = drm_get_resource_start(dev, mmio_bar);
779 size = drm_get_resource_len(dev, mmio_bar); 779 size = drm_get_resource_len(dev, mmio_bar);
780 780
781 ret = drm_addmap(dev, base, size, _DRM_REGISTERS, _DRM_KERNEL, 781 ret = drm_addmap(dev, base, size, _DRM_REGISTERS,
782 _DRM_KERNEL | _DRM_DRIVER,
782 &dev_priv->mmio_map); 783 &dev_priv->mmio_map);
783 return ret; 784 return ret;
784} 785}