Skip to content

Commit 45544c8

Browse files
committed
sound: sst-haswell-pcm: Replace CONFIG_PM_RUNTIME with CONFIG_PM
The sst-haswell-pcm driver is a new user of CONFIG_PM_RUNTIME. However, after commit b2b49cc (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM in sound/soc/intel/sst-haswell-pcm.c. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Mark Brown <broonie@kernel.org>
1 parent 47164fd commit 45544c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/intel/sst-haswell-pcm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ static int hsw_pcm_dev_remove(struct platform_device *pdev)
998998
return 0;
999999
}
10001000

1001-
#ifdef CONFIG_PM_RUNTIME
1001+
#ifdef CONFIG_PM
10021002

10031003
static int hsw_pcm_runtime_idle(struct device *dev)
10041004
{
@@ -1057,7 +1057,7 @@ static int hsw_pcm_runtime_resume(struct device *dev)
10571057
#define hsw_pcm_runtime_resume NULL
10581058
#endif
10591059

1060-
#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PM_RUNTIME)
1060+
#ifdef CONFIG_PM
10611061

10621062
static void hsw_pcm_complete(struct device *dev)
10631063
{

0 commit comments

Comments
 (0)