diff options
author | Shiraz Hashim <shiraz.hashim@st.com> | 2012-02-24 07:25:35 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-03-27 18:20:03 +0200 |
commit | 4b1a61705a563edb951b8fd9734bcb14286a7888 (patch) | |
tree | 537fe4e26ef06c9117c7fcc4ebe21a87ff2c4830 /drivers/mmc/host/sdhci-spear.c | |
parent | mmc: tmio_mmc: do not enable card hotplug interrupts, if unused (diff) | |
download | linux-4b1a61705a563edb951b8fd9734bcb14286a7888.tar.xz linux-4b1a61705a563edb951b8fd9734bcb14286a7888.zip |
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-spear.c')
-rw-r--r-- | drivers/mmc/host/sdhci-spear.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index b7f8b33c5f19..6dfa82e03c7e 100644 --- a/drivers/mmc/host/sdhci-spear.c +++ b/drivers/mmc/host/sdhci-spear.c @@ -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), |