summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-04-25 11:51:16 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:31:42 +0300
commitfdb3abcebba5d4a647739bb79a3818bd81956f64 (patch)
treed43f54d69da1959cfea9332807ed2f373e8131d1
parenta180f4e13c4473f4e66e5666dbb6157d56d83dcf (diff)
downloadlinux-fdb3abcebba5d4a647739bb79a3818bd81956f64.tar.xz
drm/xe: Fix build without CONFIG_PM_SLEEP
Build without CONFIG_PM_SLEEP (such as for riscv) was failing due to unused xe_pci_runtime_* functions. Signed-off-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r--drivers/gpu/drm/xe/xe_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index df7590b7dc2c..5f750edce542 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -702,7 +702,6 @@ static int xe_pci_resume(struct device *dev)
return 0;
}
-#endif
static int xe_pci_runtime_suspend(struct device *dev)
{
@@ -765,6 +764,7 @@ static int xe_pci_runtime_idle(struct device *dev)
return 0;
}
+#endif
static const struct dev_pm_ops xe_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume)