diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-01-23 18:17:56 +0100 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:27:43 -0500 |
commit | 8375e58c3ac96a43603530a6f02fc81a455982e7 (patch) | |
tree | 2392738151e90b7f84b453e3b961d2de3c062f07 | |
parent | a93bcc3acf1fdf55b1906e37744ebab9be884a5d (diff) |
drm/xe: Use global macros to set PM functions
This aligns with other drivers and fixes build failure when
CONFIG_PM_SLEEPĀ is not set, such as on RISC-V.
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r-- | drivers/gpu/drm/xe/xe_pci.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index b61bde17f123..67fd9c3818f9 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -584,15 +584,8 @@ static int xe_pci_runtime_idle(struct device *dev) } static const struct dev_pm_ops xe_pm_ops = { - .suspend = xe_pci_suspend, - .resume = xe_pci_resume, - .freeze = xe_pci_suspend, - .thaw = xe_pci_resume, - .poweroff = xe_pci_suspend, - .restore = xe_pci_resume, - .runtime_suspend = xe_pci_runtime_suspend, - .runtime_resume = xe_pci_runtime_resume, - .runtime_idle = xe_pci_runtime_idle, + SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume) + SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle) }; static struct pci_driver xe_pci_driver = { |