dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
Shiraz Hashim 2012-02-24 11:55:35 +05:30 committed by Chris Ball
parent e23cd53c79
commit 4b1a61705a
1 changed files with 2 additions and 7 deletions

View File

@ -300,20 +300,15 @@ static int sdhci_resume(struct device *dev)
return sdhci_resume_host(host);
}
const struct dev_pm_ops sdhci_pm_ops = {
.suspend = sdhci_suspend,
.resume = sdhci_resume,
};
#endif
static SIMPLE_DEV_PM_OPS(sdhci_pm_ops, sdhci_suspend, sdhci_resume);
static struct platform_driver sdhci_driver = {
.driver = {
.name = "sdhci",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &sdhci_pm_ops,
#endif
},
.probe = sdhci_probe,
.remove = __devexit_p(sdhci_remove),