aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/atmel-mci.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index aca59d93d5a9..7d8e87ad6d6d 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -2504,7 +2504,7 @@ static int __exit atmci_remove(struct platform_device *pdev)
2504 return 0; 2504 return 0;
2505} 2505}
2506 2506
2507#ifdef CONFIG_PM 2507#ifdef CONFIG_PM_SLEEP
2508static int atmci_suspend(struct device *dev) 2508static int atmci_suspend(struct device *dev)
2509{ 2509{
2510 struct atmel_mci *host = dev_get_drvdata(dev); 2510 struct atmel_mci *host = dev_get_drvdata(dev);
@@ -2559,17 +2559,15 @@ static int atmci_resume(struct device *dev)
2559 2559
2560 return ret; 2560 return ret;
2561} 2561}
2562static SIMPLE_DEV_PM_OPS(atmci_pm, atmci_suspend, atmci_resume);
2563#define ATMCI_PM_OPS (&atmci_pm)
2564#else
2565#define ATMCI_PM_OPS NULL
2566#endif 2562#endif
2567 2563
2564static SIMPLE_DEV_PM_OPS(atmci_pm, atmci_suspend, atmci_resume);
2565
2568static struct platform_driver atmci_driver = { 2566static struct platform_driver atmci_driver = {
2569 .remove = __exit_p(atmci_remove), 2567 .remove = __exit_p(atmci_remove),
2570 .driver = { 2568 .driver = {
2571 .name = "atmel_mci", 2569 .name = "atmel_mci",
2572 .pm = ATMCI_PM_OPS, 2570 .pm = &atmci_pm,
2573 .of_match_table = of_match_ptr(atmci_dt_ids), 2571 .of_match_table = of_match_ptr(atmci_dt_ids),
2574 }, 2572 },
2575}; 2573};