drm/i915: WARN if the core runtime PM get helpers fail
authorImre Deak <imre.deak@intel.com>
Tue, 28 Mar 2017 09:38:55 +0000 (12:38 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 28 Mar 2017 13:02:10 +0000 (16:02 +0300)
commit21e50f7ce746a4e330b8e49c15385e3006995c96
tree67519185b67224eddd6a8ed4424cd39d07806a55
parent92ec09963911c92ee257508298855073f0385d4d
drm/i915: WARN if the core runtime PM get helpers fail

We don't expect the core runtime PM get helpers to return any error, so
add a WARN for this. Also print the return value for all the callsites
to help debugging.

v2:
- Don't call pm_runtime_get_sync() as part of initing locals. (Chris)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1490693935-12638-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c