Commit fdb3abce authored by Francois Dugast's avatar Francois Dugast Committed by Rodrigo Vivi

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: default avatarFrancois Dugast <francois.dugast@intel.com>
Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent a180f4e1
...@@ -702,7 +702,6 @@ static int xe_pci_resume(struct device *dev) ...@@ -702,7 +702,6 @@ static int xe_pci_resume(struct device *dev)
return 0; return 0;
} }
#endif
static int xe_pci_runtime_suspend(struct device *dev) static int xe_pci_runtime_suspend(struct device *dev)
{ {
...@@ -765,6 +764,7 @@ static int xe_pci_runtime_idle(struct device *dev) ...@@ -765,6 +764,7 @@ static int xe_pci_runtime_idle(struct device *dev)
return 0; return 0;
} }
#endif
static const struct dev_pm_ops xe_pm_ops = { static const struct dev_pm_ops xe_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume) SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment