|
@@ -269,7 +269,7 @@ static void mei_me_remove(struct pci_dev *pdev)
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
-#ifdef CONFIG_PM
|
|
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
static int mei_me_pci_suspend(struct device *device)
|
|
static int mei_me_pci_suspend(struct device *device)
|
|
{
|
|
{
|
|
struct pci_dev *pdev = to_pci_dev(device);
|
|
struct pci_dev *pdev = to_pci_dev(device);
|
|
@@ -329,11 +329,12 @@ static int mei_me_pci_resume(struct device *device)
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
static SIMPLE_DEV_PM_OPS(mei_me_pm_ops, mei_me_pci_suspend, mei_me_pci_resume);
|
|
static SIMPLE_DEV_PM_OPS(mei_me_pm_ops, mei_me_pci_suspend, mei_me_pci_resume);
|
|
#define MEI_ME_PM_OPS (&mei_me_pm_ops)
|
|
#define MEI_ME_PM_OPS (&mei_me_pm_ops)
|
|
#else
|
|
#else
|
|
#define MEI_ME_PM_OPS NULL
|
|
#define MEI_ME_PM_OPS NULL
|
|
-#endif /* CONFIG_PM */
|
|
|
|
|
|
+#endif /* CONFIG_PM_SLEEP */
|
|
/*
|
|
/*
|
|
* PCI driver structure
|
|
* PCI driver structure
|
|
*/
|
|
*/
|