if (err)
goto err_pci_disable;
- xe_pm_runtime_init(xe);
xe_pm_init(xe);
return 0;
return true;
}
-void xe_pm_runtime_init(struct xe_device *xe)
+static void xe_pm_runtime_init(struct xe_device *xe)
{
struct device *dev = xe->drm.dev;
{
struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
+ xe_pm_runtime_init(xe);
xe->d3cold_capable = xe_pm_pci_d3cold_capable(pdev);
}
int xe_pm_suspend(struct xe_device *xe);
int xe_pm_resume(struct xe_device *xe);
-void xe_pm_runtime_init(struct xe_device *xe);
void xe_pm_init(struct xe_device *xe);
void xe_pm_runtime_fini(struct xe_device *xe);
int xe_pm_runtime_suspend(struct xe_device *xe);