diff options
-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) | |||
300 | 300 | ||
301 | return sdhci_resume_host(host); | 301 | return sdhci_resume_host(host); |
302 | } | 302 | } |
303 | |||
304 | const struct dev_pm_ops sdhci_pm_ops = { | ||
305 | .suspend = sdhci_suspend, | ||
306 | .resume = sdhci_resume, | ||
307 | }; | ||
308 | #endif | 303 | #endif |
309 | 304 | ||
305 | static SIMPLE_DEV_PM_OPS(sdhci_pm_ops, sdhci_suspend, sdhci_resume); | ||
306 | |||
310 | static struct platform_driver sdhci_driver = { | 307 | static struct platform_driver sdhci_driver = { |
311 | .driver = { | 308 | .driver = { |
312 | .name = "sdhci", | 309 | .name = "sdhci", |
313 | .owner = THIS_MODULE, | 310 | .owner = THIS_MODULE, |
314 | #ifdef CONFIG_PM | ||
315 | .pm = &sdhci_pm_ops, | 311 | .pm = &sdhci_pm_ops, |
316 | #endif | ||
317 | }, | 312 | }, |
318 | .probe = sdhci_probe, | 313 | .probe = sdhci_probe, |
319 | .remove = __devexit_p(sdhci_remove), | 314 | .remove = __devexit_p(sdhci_remove), |