diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-10-30 10:58:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-30 11:56:01 -0400 |
commit | 35e03a884c41b8fecf77e20de89759deb7c9078a (patch) | |
tree | 735055cd427f805b3d54f25f96f29e5c515fd1c2 | |
parent | b891f62fcd28a46ab0818cd9acbb5bbb20542ab6 (diff) |
ASoC: Intel: fix build with runtime PM disabled.
Fix the following errors:
All error/warnings:
>> sound/soc/intel/sst-haswell-pcm.c:1168:13: error: 'hsw_pcm_prepare' undeclared here (not in a function)
.prepare = hsw_pcm_prepare,
^
>> sound/soc/intel/sst-haswell-pcm.c:1169:14: error: 'hsw_pcm_complete' undeclared here (not in a function)
.complete = hsw_pcm_complete,
^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/sst-haswell-ipc.c | 2 | ||||
-rw-r--r-- | sound/soc/intel/sst-haswell-pcm.c | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c index 0ea7c3dcc071..ffd5728d55c3 100644 --- a/sound/soc/intel/sst-haswell-ipc.c +++ b/sound/soc/intel/sst-haswell-ipc.c | |||
@@ -1711,7 +1711,7 @@ void sst_hsw_runtime_module_free(struct sst_module_runtime *runtime) | |||
1711 | sst_module_runtime_free(runtime); | 1711 | sst_module_runtime_free(runtime); |
1712 | } | 1712 | } |
1713 | 1713 | ||
1714 | #ifdef CONFIG_PM_RUNTIME | 1714 | #ifdef CONFIG_PM |
1715 | static int sst_hsw_dx_state_dump(struct sst_hsw *hsw) | 1715 | static int sst_hsw_dx_state_dump(struct sst_hsw *hsw) |
1716 | { | 1716 | { |
1717 | struct sst_dsp *sst = hsw->dsp; | 1717 | struct sst_dsp *sst = hsw->dsp; |
diff --git a/sound/soc/intel/sst-haswell-pcm.c b/sound/soc/intel/sst-haswell-pcm.c index 4489a35e691e..cd54dd9967af 100644 --- a/sound/soc/intel/sst-haswell-pcm.c +++ b/sound/soc/intel/sst-haswell-pcm.c | |||
@@ -1058,6 +1058,12 @@ static int hsw_pcm_runtime_resume(struct device *dev) | |||
1058 | return ret; | 1058 | return ret; |
1059 | } | 1059 | } |
1060 | 1060 | ||
1061 | #else | ||
1062 | #define hsw_pcm_runtime_idle NULL | ||
1063 | #define hsw_pcm_runtime_suspend NULL | ||
1064 | #define hsw_pcm_runtime_resume NULL | ||
1065 | #endif | ||
1066 | |||
1061 | static void hsw_pcm_complete(struct device *dev) | 1067 | static void hsw_pcm_complete(struct device *dev) |
1062 | { | 1068 | { |
1063 | struct hsw_priv_data *pdata = dev_get_drvdata(dev); | 1069 | struct hsw_priv_data *pdata = dev_get_drvdata(dev); |
@@ -1153,14 +1159,6 @@ static int hsw_pcm_prepare(struct device *dev) | |||
1153 | return 0; | 1159 | return 0; |
1154 | } | 1160 | } |
1155 | 1161 | ||
1156 | #else | ||
1157 | #define hsw_pcm_runtime_idle NULL | ||
1158 | #define hsw_pcm_runtime_suspend NULL | ||
1159 | #define hsw_pcm_runtime_resume NULL | ||
1160 | #define hsw_pcm_runtime_complete NULL | ||
1161 | #define hsw_pcm_runtime_prepare NULL | ||
1162 | #endif | ||
1163 | |||
1164 | static const struct dev_pm_ops hsw_pcm_pm = { | 1162 | static const struct dev_pm_ops hsw_pcm_pm = { |
1165 | .runtime_idle = hsw_pcm_runtime_idle, | 1163 | .runtime_idle = hsw_pcm_runtime_idle, |
1166 | .runtime_suspend = hsw_pcm_runtime_suspend, | 1164 | .runtime_suspend = hsw_pcm_runtime_suspend, |