Skip to content

Commit

Permalink
mmc: sdhci-spear: add pm callbacks to support hibernation
Browse files Browse the repository at this point in the history
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Shiraz Hashim authored and Chris Ball committed Mar 27, 2012
1 parent e23cd53 commit 4b1a617
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/mmc/host/sdhci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4b1a617

Please sign in to comment.