diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-07-29 15:10:16 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-29 15:15:47 -0400 |
commit | d3dacda9390b936a1c341d868f548944cc1c70de (patch) | |
tree | 05042f4c1605350af93dd1731dffcc40bb14ca9d /sound/soc/fsl | |
parent | 3117bb3109dc223e186302f5dc8ce9ed04adca90 (diff) |
ASoC: fsl_asrc: Use 'ifdef' for config options
Fix the following build errors that were observed by building with
make ARCH=microblaze allyesconfig:
>> sound/soc/fsl/fsl_asrc.c:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef]
#if CONFIG_PM_RUNTIME
^
>> 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:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef]
#if CONFIG_PM_RUNTIME
^
>> sound/soc/fsl/fsl_asrc.c:934:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef]
#if CONFIG_PM_SLEEP
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 27a4a7084343..b9a288877267 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c | |||
@@ -903,7 +903,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
903 | return 0; | 903 | return 0; |
904 | } | 904 | } |
905 | 905 | ||
906 | #if CONFIG_PM_RUNTIME | 906 | #ifdef CONFIG_PM_RUNTIME |
907 | static int fsl_asrc_runtime_resume(struct device *dev) | 907 | static int fsl_asrc_runtime_resume(struct device *dev) |
908 | { | 908 | { |
909 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); | 909 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); |
@@ -931,7 +931,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev) | |||
931 | } | 931 | } |
932 | #endif /* CONFIG_PM_RUNTIME */ | 932 | #endif /* CONFIG_PM_RUNTIME */ |
933 | 933 | ||
934 | #if CONFIG_PM_SLEEP | 934 | #ifdef CONFIG_PM_SLEEP |
935 | static int fsl_asrc_suspend(struct device *dev) | 935 | static int fsl_asrc_suspend(struct device *dev) |
936 | { | 936 | { |
937 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); | 937 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); |