|
@@ -1006,15 +1006,7 @@ static int smtcfb_pci_resume(struct device *device)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static const struct dev_pm_ops sm7xx_pm_ops = {
|
|
|
- .suspend = smtcfb_pci_suspend,
|
|
|
- .resume = smtcfb_pci_resume,
|
|
|
- .freeze = smtcfb_pci_suspend,
|
|
|
- .thaw = smtcfb_pci_resume,
|
|
|
- .poweroff = smtcfb_pci_suspend,
|
|
|
- .restore = smtcfb_pci_resume,
|
|
|
-};
|
|
|
-
|
|
|
+static SIMPLE_DEV_PM_OPS(sm7xx_pm_ops, smtcfb_pci_suspend, smtcfb_pci_resume);
|
|
|
#define SM7XX_PM_OPS (&sm7xx_pm_ops)
|
|
|
|
|
|
#else /* !CONFIG_PM */
|