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

Commit d8edfc4e authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: mxmmc: 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: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent a639bb72
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1214,7 +1214,8 @@ static int mxcmci_remove(struct platform_device *pdev)
	return 0;
	return 0;
}
}


static int __maybe_unused mxcmci_suspend(struct device *dev)
#ifdef CONFIG_PM_SLEEP
static int mxcmci_suspend(struct device *dev)
{
{
	struct mmc_host *mmc = dev_get_drvdata(dev);
	struct mmc_host *mmc = dev_get_drvdata(dev);
	struct mxcmci_host *host = mmc_priv(mmc);
	struct mxcmci_host *host = mmc_priv(mmc);
@@ -1224,7 +1225,7 @@ static int __maybe_unused mxcmci_suspend(struct device *dev)
	return 0;
	return 0;
}
}


static int __maybe_unused mxcmci_resume(struct device *dev)
static int mxcmci_resume(struct device *dev)
{
{
	struct mmc_host *mmc = dev_get_drvdata(dev);
	struct mmc_host *mmc = dev_get_drvdata(dev);
	struct mxcmci_host *host = mmc_priv(mmc);
	struct mxcmci_host *host = mmc_priv(mmc);
@@ -1240,6 +1241,7 @@ static int __maybe_unused mxcmci_resume(struct device *dev)


	return ret;
	return ret;
}
}
#endif


static SIMPLE_DEV_PM_OPS(mxcmci_pm_ops, mxcmci_suspend, mxcmci_resume);
static SIMPLE_DEV_PM_OPS(mxcmci_pm_ops, mxcmci_suspend, mxcmci_resume);