drm/i915: WARN if the core runtime PM get helpers fail
authorImre Deak <[email protected]>
Tue, 28 Mar 2017 09:38:55 +0000 (12:38 +0300)
committerImre Deak <[email protected]>
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 <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_runtime_pm.c