ASoC: fsl: Use #ifdef instead of #if for CONFIG_PM_SLEEP
authorNicolin Chen <nicoleotsuka@gmail.com>
Thu, 22 Oct 2015 22:56:40 +0000 (15:56 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2015 02:08:00 +0000 (11:08 +0900)
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>
sound/soc/fsl/fsl_esai.c
sound/soc/fsl/fsl_sai.c

index aab675a9d3f10866081f61647fd88e1e73c617b4..59f234e51971e2abfe7597dc7ad783a5972fbc76 100644 (file)
@@ -900,7 +900,7 @@ static const struct of_device_id fsl_esai_dt_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, fsl_esai_dt_ids);
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int fsl_esai_suspend(struct device *dev)
 {
        struct fsl_esai *esai = dev_get_drvdata(dev);
index 38505f32ebe6069a9772954ddb9c2e3610254a6c..a4435f5e3be910447f9168b4708d19140f3c1f4f 100644 (file)
@@ -806,7 +806,7 @@ static const struct of_device_id fsl_sai_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, fsl_sai_ids);
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int fsl_sai_suspend(struct device *dev)
 {
        struct fsl_sai *sai = dev_get_drvdata(dev);