From: Shiraz Hashim Date: Fri, 24 Feb 2012 06:25:35 +0000 (+0530) Subject: mmc: sdhci-spear: add pm callbacks to support hibernation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4b1a61705a563edb951b8fd9734bcb14286a7888;p=linux-beck.git mmc: sdhci-spear: add pm callbacks to support hibernation Signed-off-by: Shiraz Hashim Signed-off-by: Chris Ball --- 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),