Module Name:    src
Committed By:   riastradh
Date:           Fri Apr  4 15:16:29 UTC 2014

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915: i915_dma.c

Log Message:
Don't ifdef out unmapping of the GTT on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.3 src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.4
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.3	Tue Mar 18 21:36:52 2014
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c	Fri Apr  4 15:16:29 2014
@@ -1812,7 +1812,6 @@ int i915_driver_unload(struct drm_device
 	/* Cancel the retire work handler, which should be idle now. */
 	cancel_delayed_work_sync(&dev_priv->mm.retire_work);
 
-#ifndef __NetBSD__
 	io_mapping_free(dev_priv->mm.gtt_mapping);
 	if (dev_priv->mm.gtt_mtrr >= 0) {
 		mtrr_del(dev_priv->mm.gtt_mtrr,
@@ -1820,7 +1819,6 @@ int i915_driver_unload(struct drm_device
 			 dev_priv->mm.gtt->gtt_mappable_entries * PAGE_SIZE);
 		dev_priv->mm.gtt_mtrr = -1;
 	}
-#endif
 
 	acpi_video_unregister();
 

Reply via email to