summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-11-19 04:43:26 -0500
committerMark Brown <broonie@kernel.org>2014-11-19 05:56:46 -0500
commit92a6e2a227da5fcaa5b31c9124eabf8c64a6d9f9 (patch)
treeb93d0e9d7d2f49682509ad257e3d9eecf10c5fca
parenteb826a35d2578106cf6fbfb2a83eedd1c0c2c415 (diff)
ASoC: Intel: cleanup runtime_pm initialization
For ACPI we missed to pm_runtime_enable() call which is required to tell PM core that runtime on this device is enabled now. Since this is common to both PCI and APCI move it out. Also for ACPI we do not require pm_runtime_allow() call, so remove that Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/sst/sst.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
index b2b5604943b5..9e68a7cefd1b 100644
--- a/sound/soc/intel/sst/sst.c
+++ b/sound/soc/intel/sst/sst.c
@@ -378,13 +378,13 @@ void sst_configure_runtime_pm(struct intel_sst_drv *ctx)
378 * initially active. So change the state to active before 378 * initially active. So change the state to active before
379 * enabling the pm 379 * enabling the pm
380 */ 380 */
381 if (acpi_disabled) { 381 pm_runtime_enable(ctx->dev);
382
383 if (acpi_disabled)
382 pm_runtime_set_active(ctx->dev); 384 pm_runtime_set_active(ctx->dev);
383 pm_runtime_enable(ctx->dev); 385 else
384 } else {
385 pm_runtime_allow(ctx->dev);
386 pm_runtime_put_noidle(ctx->dev); 386 pm_runtime_put_noidle(ctx->dev);
387 } 387
388 sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64); 388 sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64);
389} 389}
390EXPORT_SYMBOL_GPL(sst_configure_runtime_pm); 390EXPORT_SYMBOL_GPL(sst_configure_runtime_pm);