提交 4b1a6170 编写于 作者: S Shiraz Hashim 提交者: Chris Ball

mmc: sdhci-spear: add pm callbacks to support hibernation

Signed-off-by: NShiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 e23cd53c
...@@ -300,20 +300,15 @@ static int sdhci_resume(struct device *dev) ...@@ -300,20 +300,15 @@ static int sdhci_resume(struct device *dev)
return sdhci_resume_host(host); return sdhci_resume_host(host);
} }
const struct dev_pm_ops sdhci_pm_ops = {
.suspend = sdhci_suspend,
.resume = sdhci_resume,
};
#endif #endif
static SIMPLE_DEV_PM_OPS(sdhci_pm_ops, sdhci_suspend, sdhci_resume);
static struct platform_driver sdhci_driver = { static struct platform_driver sdhci_driver = {
.driver = { .driver = {
.name = "sdhci", .name = "sdhci",
.owner = THIS_MODULE, .owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &sdhci_pm_ops, .pm = &sdhci_pm_ops,
#endif
}, },
.probe = sdhci_probe, .probe = sdhci_probe,
.remove = __devexit_p(sdhci_remove), .remove = __devexit_p(sdhci_remove),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册