@@ -2683,7 +2683,6 @@ static int msdc_drv_remove(struct platform_device *pdev)
26832683 return 0 ;
26842684}
26852685
2686- #ifdef CONFIG_PM
26872686static void msdc_save_reg (struct msdc_host * host )
26882687{
26892688 u32 tune_reg = host -> dev_comp -> pad_tune_reg ;
@@ -2742,7 +2741,7 @@ static void msdc_restore_reg(struct msdc_host *host)
27422741 __msdc_enable_sdio_irq (host , 1 );
27432742}
27442743
2745- static int msdc_runtime_suspend (struct device * dev )
2744+ static int __maybe_unused msdc_runtime_suspend (struct device * dev )
27462745{
27472746 struct mmc_host * mmc = dev_get_drvdata (dev );
27482747 struct msdc_host * host = mmc_priv (mmc );
@@ -2752,7 +2751,7 @@ static int msdc_runtime_suspend(struct device *dev)
27522751 return 0 ;
27532752}
27542753
2755- static int msdc_runtime_resume (struct device * dev )
2754+ static int __maybe_unused msdc_runtime_resume (struct device * dev )
27562755{
27572756 struct mmc_host * mmc = dev_get_drvdata (dev );
27582757 struct msdc_host * host = mmc_priv (mmc );
@@ -2762,7 +2761,7 @@ static int msdc_runtime_resume(struct device *dev)
27622761 return 0 ;
27632762}
27642763
2765- static int msdc_suspend (struct device * dev )
2764+ static int __maybe_unused msdc_suspend (struct device * dev )
27662765{
27672766 struct mmc_host * mmc = dev_get_drvdata (dev );
27682767 int ret ;
@@ -2776,11 +2775,10 @@ static int msdc_suspend(struct device *dev)
27762775 return pm_runtime_force_suspend (dev );
27772776}
27782777
2779- static int msdc_resume (struct device * dev )
2778+ static int __maybe_unused msdc_resume (struct device * dev )
27802779{
27812780 return pm_runtime_force_resume (dev );
27822781}
2783- #endif
27842782
27852783static const struct dev_pm_ops msdc_dev_pm_ops = {
27862784 SET_SYSTEM_SLEEP_PM_OPS (msdc_suspend , msdc_resume )
0 commit comments