|
@@ -215,7 +215,7 @@ int sdhci_pltfm_unregister(struct platform_device *pdev)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int sdhci_pltfm_suspend(struct device *dev)
|
|
|
{
|
|
|
struct sdhci_host *host = dev_get_drvdata(dev);
|
|
@@ -229,13 +229,12 @@ static int sdhci_pltfm_resume(struct device *dev)
|
|
|
|
|
|
return sdhci_resume_host(host);
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
const struct dev_pm_ops sdhci_pltfm_pmops = {
|
|
|
- .suspend = sdhci_pltfm_suspend,
|
|
|
- .resume = sdhci_pltfm_resume,
|
|
|
+ SET_SYSTEM_SLEEP_PM_OPS(sdhci_pltfm_suspend, sdhci_pltfm_resume)
|
|
|
};
|
|
|
EXPORT_SYMBOL_GPL(sdhci_pltfm_pmops);
|
|
|
-#endif /* CONFIG_PM */
|
|
|
|
|
|
static int __init sdhci_pltfm_drv_init(void)
|
|
|
{
|