Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b1a6170 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Chris Ball
Browse files

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



Signed-off-by: default avatarShiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent e23cd53c
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -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),