drm/i915: release scratch page at module unload
authorImre Deak <imre.deak@intel.com>
Wed, 22 May 2013 14:47:13 +0000 (17:47 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:53:59 +0000 (20:53 +0200)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c

index bd56c5560fa0de87d3fef1011519271529f31ec5..3cd2b606aaba9b2dabb66c564651a83a1e8bb2f6 100644 (file)
@@ -1790,6 +1790,8 @@ int i915_driver_unload(struct drm_device *dev)
        destroy_workqueue(dev_priv->wq);
        pm_qos_remove_request(&dev_priv->pm_qos);
 
+       dev_priv->gtt.gtt_remove(dev);
+
        if (dev_priv->slab)
                kmem_cache_destroy(dev_priv->slab);