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)
commitf5073824efc856c9a8f56706f03ad4e07b779a36
tree67519185b67224eddd6a8ed4424cd39d07806a55
parent0a309f9e3dfaa4f5db0bf1b0cab54571744b491a
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