drm/i915: Factor out intel_power_well_get/put
authorImre Deak <imre.deak@intel.com>
Mon, 13 Jun 2016 13:44:33 +0000 (16:44 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 13 Jun 2016 15:46:08 +0000 (18:46 +0300)
commitb409ca9587cb62fc066841f457b73a1f92e136ee
treee5a67031fa3532f45b7f38a510aba145135cef6a
parente4c49e0f1069b338a28622595dfaf6616f7662c1
drm/i915: Factor out intel_power_well_get/put

These helpers will be needed by the next patch, so factor them out.

No functional change.

v2:
- Move the refcount==0 WARN to the new put helper. (Ville)

CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_runtime_pm.c