@@ -676,6 +676,11 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
amdgpu_device_ip_suspend(adev);
}
+static int amdgpu_pmops_prepare(struct device *dev)
+{
+ return -ENODEV;
+}
+
static int amdgpu_pmops_suspend(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
@@ -827,6 +832,7 @@ long amdgpu_drm_ioctl(struct file *filp,
}
static const struct dev_pm_ops amdgpu_pm_ops = {
+ .prepare = amdgpu_pmops_prepare,
.suspend = amdgpu_pmops_suspend,
.resume = amdgpu_pmops_resume,
.freeze = amdgpu_pmops_freeze,