提交 739146b6 编写于 作者: N Nicolin Chen 提交者: Mark Brown

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: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 ce247b45
...@@ -900,7 +900,7 @@ static const struct of_device_id fsl_esai_dt_ids[] = { ...@@ -900,7 +900,7 @@ static const struct of_device_id fsl_esai_dt_ids[] = {
}; };
MODULE_DEVICE_TABLE(of, 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) static int fsl_esai_suspend(struct device *dev)
{ {
struct fsl_esai *esai = dev_get_drvdata(dev); struct fsl_esai *esai = dev_get_drvdata(dev);
......
...@@ -806,7 +806,7 @@ static const struct of_device_id fsl_sai_ids[] = { ...@@ -806,7 +806,7 @@ static const struct of_device_id fsl_sai_ids[] = {
}; };
MODULE_DEVICE_TABLE(of, 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) static int fsl_sai_suspend(struct device *dev)
{ {
struct fsl_sai *sai = dev_get_drvdata(dev); struct fsl_sai *sai = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册