drm/i915/selftests: Avoid warning if runtime pm is disabled
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 20:59:47 +0000 (21:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 22:33:34 +0000 (23:33 +0100)
commit07e070e1e3b24e4b66a3b5e55e6486d7fe9769dd
tree7f17597f16b4ff3974ea988f43d1ecf7e22a541e
parent3a32497f0dbe170794e1506deb41dc44c4fea8d9
drm/i915/selftests: Avoid warning if runtime pm is disabled

Inside the mock GEM device, we try to grab the runtime pm for the fake
device to prevent it from ever suspending. However, if CONFIG_PM is not
set, trying to obtain the wakref returns an error which we WARN about.
Suppress the expected warning.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706205947.11209-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_gem_device.c