mmc: sdhci-spear: add pm callbacks to support hibernation
authorShiraz Hashim <shiraz.hashim@st.com>
Fri, 24 Feb 2012 06:25:35 +0000 (11:55 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:03 +0000 (12:20 -0400)
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-spear.c

index b7f8b33c5f19f7202f66d65fd90ff14b503f8dd4..6dfa82e03c7e4964bff24a7e3fb9eb92468cd0d0 100644 (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),