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

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

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent d8edfc4e
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1432,7 +1432,8 @@ static int sunxi_mmc_remove(struct platform_device *pdev)
	return 0;
	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 mmc_host	*mmc = dev_get_drvdata(dev);
	struct sunxi_mmc_host *host = mmc_priv(mmc);
	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;
	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 mmc_host	*mmc = dev_get_drvdata(dev);
	struct sunxi_mmc_host *host = mmc_priv(mmc);
	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;
	return 0;
}
}
#endif


static const struct dev_pm_ops sunxi_mmc_pm_ops = {
static const struct dev_pm_ops sunxi_mmc_pm_ops = {
	SET_RUNTIME_PM_OPS(sunxi_mmc_runtime_suspend,
	SET_RUNTIME_PM_OPS(sunxi_mmc_runtime_suspend,