aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2008-08-05 14:37:25 -0400
committerDave Airlie <airlied@linux.ie>2008-10-17 17:10:10 -0400
commit8ee1c3db9075cb3211352e737e0feb98fd733b20 (patch)
treead91cc8b4ce57fdfdbac8920ba4b352a6871c782 /drivers/gpu/drm/i915/i915_dma.c
parent398c9cb20b5c6c5d1313912b937d653a46fec578 (diff)
Add Intel ACPI IGD OpRegion support
This adds the support necessary for allowing ACPI backlight control to work on some newer Intel-based graphics systems. Tested on Thinkpad T61 and HP 2510p hardware. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index f1b5aa92fa83..29115450ee46 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -810,6 +810,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
810 if (!IS_I945G(dev) && !IS_I945GM(dev)) 810 if (!IS_I945G(dev) && !IS_I945GM(dev))
811 pci_enable_msi(dev->pdev); 811 pci_enable_msi(dev->pdev);
812 812
813 intel_opregion_init(dev);
814
813 spin_lock_init(&dev_priv->user_irq_lock); 815 spin_lock_init(&dev_priv->user_irq_lock);
814 816
815 return ret; 817 return ret;
@@ -827,6 +829,8 @@ int i915_driver_unload(struct drm_device *dev)
827 if (dev_priv->mmio_map) 829 if (dev_priv->mmio_map)
828 drm_rmmap(dev, dev_priv->mmio_map); 830 drm_rmmap(dev, dev_priv->mmio_map);
829 831
832 intel_opregion_free(dev);
833
830 drm_free(dev->dev_private, sizeof(drm_i915_private_t), 834 drm_free(dev->dev_private, sizeof(drm_i915_private_t),
831 DRM_MEM_DRIVER); 835 DRM_MEM_DRIVER);
832 836