summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2018-05-30 15:02:16 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2018-05-30 15:02:16 +0200
commitaf6b8ff4bce4ea43e89236339f84fc0a26044c42 (patch)
tree98c1ad9d46b6f159a6b818fe0c8d91337e6e9950 /drivers/mmc
parentmmc: mxmmc: Use ifdef rather than __maybe_unused (diff)
downloadlinux-af6b8ff4bce4ea43e89236339f84fc0a26044c42.tar.xz
linux-af6b8ff4bce4ea43e89236339f84fc0a26044c42.zip
mmc: sunxi: Use ifdef rather than __maybe_unused
To be consistent with code in other mmc host drivers, convert to check the correct PM config #ifdef in favor of using __maybe_unused. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sunxi-mmc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 837888b96bd3..e7472590f2ed 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -1432,7 +1432,8 @@ static int sunxi_mmc_remove(struct platform_device *pdev)
return 0;
}
-static int __maybe_unused sunxi_mmc_runtime_resume(struct device *dev)
+#ifdef CONFIG_PM
+static int sunxi_mmc_runtime_resume(struct device *dev)
{
struct mmc_host *mmc = dev_get_drvdata(dev);
struct sunxi_mmc_host *host = mmc_priv(mmc);
@@ -1449,7 +1450,7 @@ static int __maybe_unused sunxi_mmc_runtime_resume(struct device *dev)
return 0;
}
-static int __maybe_unused sunxi_mmc_runtime_suspend(struct device *dev)
+static int sunxi_mmc_runtime_suspend(struct device *dev)
{
struct mmc_host *mmc = dev_get_drvdata(dev);
struct sunxi_mmc_host *host = mmc_priv(mmc);
@@ -1459,6 +1460,7 @@ static int __maybe_unused sunxi_mmc_runtime_suspend(struct device *dev)
return 0;
}
+#endif
static const struct dev_pm_ops sunxi_mmc_pm_ops = {
SET_RUNTIME_PM_OPS(sunxi_mmc_runtime_suspend,