drm/i915: refactor RPM disabling due to RC6 being disabled
authorImre Deak <imre.deak@intel.com>
Tue, 15 Dec 2015 18:10:31 +0000 (20:10 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Dec 2015 13:42:46 +0000 (15:42 +0200)
commitb268c699aca5c17d997d358d25256fc6abefd29c
treee43682c5d27bf67b3595314f27931197abc41b6e
parentaabee1bbc11db3f7238e0fef8f1bf280920f98f4
drm/i915: refactor RPM disabling due to RC6 being disabled

We can make the RPM dependency on RC6 explcit in the code by taking an
actual RPM reference, instead of avoiding to drop the initial one. This
will also enable us to remove the HAS_RUNTIME_PM special casing from
more places in the next patch.

v2:
- fixed typo in commit message (Joonas)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450203038-5150-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.c