drm/i915/pmu: Fix building without CONFIG_PM
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 16:04:28 +0000 (16:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 17:07:45 +0000 (17:07 +0000)
commit05273c950a3c93c5f96be8807eaf24f2cc9f1c1e
tree922397b21b3aa44f4c7a7c6b16f18529c7e1fcf2
parent1fe699e30113ed6f6e853ff44710d256072ea627
drm/i915/pmu: Fix building without CONFIG_PM

As we peek inside struct device to query members guarded by CONFIG_PM,
so must be the code.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 1fe699e30113 ("drm/i915/pmu: Fix sleep under atomic in RC6 readout")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207160428.17015-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pmu.c