mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 05:12:01 +02:00
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>
This commit is contained in:
parent
a93bcc3acf
commit
8375e58c3a
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user