From 41fd8bec7d0000a59f7cd64bdb46f393f1db1010 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 16 Oct 2024 10:13:47 +0800 Subject: [PATCH] mmc: sdhci-of-dwcmshc: Fix build warning for !PM_SLEEP drivers/mmc/host/sdhci-of-dwcmshc.c:1115:28: error: 'dwcmshc_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'? drivers/mmc/host/sdhci-of-dwcmshc.c:1115:53: error: 'dwcmshc_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'? Change-Id: Icb0b18860e3c0bda2a22645cf98bf4bfbbade426 Signed-off-by: Tao Huang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 5e55b6439c71..4d57d977a4c8 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -1084,6 +1084,9 @@ disable_clk: clk_disable_unprepare(pltfm_host->clk); return ret; } +#endif + +#ifdef CONFIG_PM static int dwcmshc_runtime_suspend(struct device *dev) {