Commit 8375e58c authored by Francois Dugast's avatar Francois Dugast Committed by Rodrigo Vivi
Browse files

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: default avatarFrancois Dugast <francois.dugast@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent a93bcc3a
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -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 = {