Skip to contentSkip to conversation

ASoC: fsl_asrc: Use 'ifdef' for config options

PATCH Applied Fabio Estevam 2 participants 2 messages Jul 29, 2014

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ASoC: fsl_asrc: Use 'ifdef' for config options

From: Fabio Estevam <[email protected]>

Fix the following build errors that were observed by building with make ARCH=microblaze allyesconfig:

Quoted 1 line
Quoted 1 line

sound/soc/fsl/fsl_asrc.c:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef]

    #if CONFIG_PM_RUNTIME
        ^
Quoted 1 line
Quoted 1 line

sound/soc/fsl/fsl_asrc.c:934:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef]

    #if CONFIG_PM_SLEEP
        ^
Quoted 1 line
Quoted 1 line

sound/soc/fsl/fsl_asrc.c:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef]

    #if CONFIG_PM_RUNTIME
        ^
Quoted 1 line
Quoted 1 line

sound/soc/fsl/fsl_asrc.c:934:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef]

    #if CONFIG_PM_SLEEP
---
 sound/soc/fsl/fsl_asrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_asrc.c +2 -2
index 27a4a70..b9a2888 100644
@@ -903,7 +903,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
 	return 0;
 }
 
-#if CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM_RUNTIME
 static int fsl_asrc_runtime_resume(struct device *dev)
 {
 	struct fsl_asrc *asrc_priv = dev_get_drvdata(dev);
@@ -931,7 +931,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev)
 }
 #endif /* CONFIG_PM_RUNTIME */
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int fsl_asrc_suspend(struct device *dev)
 {
 	struct fsl_asrc *asrc_priv = dev_get_drvdata(dev);
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following build errors that were observed by building with make ARCH=microblaze allyesconfig:

Applied, thanks.