]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Fixup config ifdeffery for pm_suspend_target_state
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 18:22:09 +0000 (18:22 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 25 Nov 2019 13:28:38 +0000 (15:28 +0200)
commit119b65b978b065eabbbce396d198613d62a67766
treef47d95072f8756133e39e88a841220f4d5a63faf
parent141c2adc42bcca4b49372c53ff6133e3c6e5eb10
drm/i915/gt: Fixup config ifdeffery for pm_suspend_target_state

pm_suspend_target_state is declared under CONFIG_PM_SLEEP but only
defined under CONFIG_SUSPEND. Play safe and only use the symbol if it is
both declared and defined.

Reported-by: kbuild-all@lists.01.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 840983c99683 ("drm/i915: Defer rc6 shutdown to suspend_late")
Cc: Andi Shyti <andi.shyti@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120182209.3967833-1-chris@chris-wilson.co.uk
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_gt_pm.c