diff options
author | Matthew Garrett <mjg59@srcf.ucam.org> | 2008-08-05 19:37:25 +0100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-18 07:10:10 +1000 |
commit | 8ee1c3db9075cb3211352e737e0feb98fd733b20 (patch) | |
tree | ad91cc8b4ce57fdfdbac8920ba4b352a6871c782 /drivers/gpu/drm/i915/i915_dma.c | |
parent | 398c9cb20b5c6c5d1313912b937d653a46fec578 (diff) | |
download | op-kernel-dev-8ee1c3db9075cb3211352e737e0feb98fd733b20.zip op-kernel-dev-8ee1c3db9075cb3211352e737e0feb98fd733b20.tar.gz |
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.c | 4 |
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 f1b5aa9..2911545 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) if (!IS_I945G(dev) && !IS_I945GM(dev)) pci_enable_msi(dev->pdev); + intel_opregion_init(dev); + spin_lock_init(&dev_priv->user_irq_lock); return ret; @@ -827,6 +829,8 @@ int i915_driver_unload(struct drm_device *dev) if (dev_priv->mmio_map) drm_rmmap(dev, dev_priv->mmio_map); + intel_opregion_free(dev); + drm_free(dev->dev_private, sizeof(drm_i915_private_t), DRM_MEM_DRIVER); |