summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_suspend.c
diff options
context:
space:
mode:
authorEugeni Dodonov2012-01-08 02:40:34 +0100
committerKeith Packard2012-01-09 23:17:25 +0100
commit5e5b7fa2ad84f7806d0c7f5af8e1440bc91b4ec7 (patch)
treed84e789b76090510e58c31d0ef4d5194b0a37075 /drivers/gpu/drm/i915/i915_suspend.c
parentdrm/i915: Print debugfs object list sizes in KiB instead of bytes. (diff)
downloadkernel-qcow2-linux-5e5b7fa2ad84f7806d0c7f5af8e1440bc91b4ec7.tar.gz
kernel-qcow2-linux-5e5b7fa2ad84f7806d0c7f5af8e1440bc91b4ec7.tar.xz
kernel-qcow2-linux-5e5b7fa2ad84f7806d0c7f5af8e1440bc91b4ec7.zip
drm/i915: simplify pipe checking
This is also handled by i915_reg.h, so just reuse this trick to reduce universe entropy. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_suspend.c')
-rw-r--r--drivers/gpu/drm/i915/i915_suspend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c
index 7886e4fb60e3..c0b945cdcd9a 100644
--- a/drivers/gpu/drm/i915/i915_suspend.c
+++ b/drivers/gpu/drm/i915/i915_suspend.c
@@ -28,6 +28,7 @@
#include "drm.h"
#include "i915_drm.h"
#include "intel_drv.h"
+#include "i915_reg.h"
static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
{
@@ -35,7 +36,7 @@ static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
u32 dpll_reg;
if (HAS_PCH_SPLIT(dev))
- dpll_reg = (pipe == PIPE_A) ? _PCH_DPLL_A : _PCH_DPLL_B;
+ dpll_reg = PCH_DPLL(pipe);
else
dpll_reg = (pipe == PIPE_A) ? _DPLL_A : _DPLL_B;