diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2015-10-22 18:56:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-25 22:08:00 -0400 |
commit | 739146b6144a6541cf94a668d6e7227b7882af30 (patch) | |
tree | 097137ad3876cb09b41dffc69f318c722d234cdf /sound/soc/fsl | |
parent | ce247b45a3289f88008c13ca26ccde0db5fea690 (diff) |
ASoC: fsl: Use #ifdef instead of #if for CONFIG_PM_SLEEP
Change them to #ifdef as CONFIG_PM_SLEEP might not be defined at all.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_esai.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index aab675a9d3f1..59f234e51971 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c | |||
@@ -900,7 +900,7 @@ static const struct of_device_id fsl_esai_dt_ids[] = { | |||
900 | }; | 900 | }; |
901 | MODULE_DEVICE_TABLE(of, fsl_esai_dt_ids); | 901 | MODULE_DEVICE_TABLE(of, fsl_esai_dt_ids); |
902 | 902 | ||
903 | #if CONFIG_PM_SLEEP | 903 | #ifdef CONFIG_PM_SLEEP |
904 | static int fsl_esai_suspend(struct device *dev) | 904 | static int fsl_esai_suspend(struct device *dev) |
905 | { | 905 | { |
906 | struct fsl_esai *esai = dev_get_drvdata(dev); | 906 | struct fsl_esai *esai = dev_get_drvdata(dev); |
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 38505f32ebe6..a4435f5e3be9 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c | |||
@@ -806,7 +806,7 @@ static const struct of_device_id fsl_sai_ids[] = { | |||
806 | }; | 806 | }; |
807 | MODULE_DEVICE_TABLE(of, fsl_sai_ids); | 807 | MODULE_DEVICE_TABLE(of, fsl_sai_ids); |
808 | 808 | ||
809 | #if CONFIG_PM_SLEEP | 809 | #ifdef CONFIG_PM_SLEEP |
810 | static int fsl_sai_suspend(struct device *dev) | 810 | static int fsl_sai_suspend(struct device *dev) |
811 | { | 811 | { |
812 | struct fsl_sai *sai = dev_get_drvdata(dev); | 812 | struct fsl_sai *sai = dev_get_drvdata(dev); |