diff options
| -rw-r--r-- | drivers/mmc/host/mxcmmc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index d62bf7efce13..75f781c11e89 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c | |||
| @@ -1214,7 +1214,8 @@ static int mxcmci_remove(struct platform_device *pdev) | |||
| 1214 | return 0; | 1214 | return 0; |
| 1215 | } | 1215 | } |
| 1216 | 1216 | ||
| 1217 | static int __maybe_unused mxcmci_suspend(struct device *dev) | 1217 | #ifdef CONFIG_PM_SLEEP |
| 1218 | static int mxcmci_suspend(struct device *dev) | ||
| 1218 | { | 1219 | { |
| 1219 | struct mmc_host *mmc = dev_get_drvdata(dev); | 1220 | struct mmc_host *mmc = dev_get_drvdata(dev); |
| 1220 | struct mxcmci_host *host = mmc_priv(mmc); | 1221 | struct mxcmci_host *host = mmc_priv(mmc); |
| @@ -1224,7 +1225,7 @@ static int __maybe_unused mxcmci_suspend(struct device *dev) | |||
| 1224 | return 0; | 1225 | return 0; |
| 1225 | } | 1226 | } |
| 1226 | 1227 | ||
| 1227 | static int __maybe_unused mxcmci_resume(struct device *dev) | 1228 | static int mxcmci_resume(struct device *dev) |
| 1228 | { | 1229 | { |
| 1229 | struct mmc_host *mmc = dev_get_drvdata(dev); | 1230 | struct mmc_host *mmc = dev_get_drvdata(dev); |
| 1230 | struct mxcmci_host *host = mmc_priv(mmc); | 1231 | struct mxcmci_host *host = mmc_priv(mmc); |
| @@ -1240,6 +1241,7 @@ static int __maybe_unused mxcmci_resume(struct device *dev) | |||
| 1240 | 1241 | ||
| 1241 | return ret; | 1242 | return ret; |
| 1242 | } | 1243 | } |
| 1244 | #endif | ||
| 1243 | 1245 | ||
| 1244 | static SIMPLE_DEV_PM_OPS(mxcmci_pm_ops, mxcmci_suspend, mxcmci_resume); | 1246 | static SIMPLE_DEV_PM_OPS(mxcmci_pm_ops, mxcmci_suspend, mxcmci_resume); |
| 1245 | 1247 | ||
