Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: drivers/gpu/drm/i915/i915_dma.c

Issue 2830015: Implement direct pineview backlight control. (Closed) Base URL: ssh://git@chromiumos-git/kernel.git
Patch Set: Move config file changes to another patch for upstreamability, as per msb. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « drivers/gpu/drm/i915/i915_backlight.c ('k') | drivers/gpu/drm/i915/i915_drv.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/gpu/drm/i915/i915_dma.c
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index b24e814d40955d4d44014de049f6d6c61684abd1..fe4d41c45215cddf8bb97dca22bea01f98501cb9 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1504,6 +1504,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
setup_timer(&dev_priv->hangcheck_timer, i915_hangcheck_elapsed,
(unsigned long) dev);
+
+ i915_backlight_init(dev);
+
return 0;
out_workqueue_free:
@@ -1523,6 +1526,8 @@ int i915_driver_unload(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
+ i915_backlight_exit(dev);
+
destroy_workqueue(dev_priv->wq);
del_timer_sync(&dev_priv->hangcheck_timer);
« no previous file with comments | « drivers/gpu/drm/i915/i915_backlight.c ('k') | drivers/gpu/drm/i915/i915_drv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698