summaryrefslogtreecommitdiffstats
path: root/sound/x86
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-02-01 17:27:48 +0100
committerTakashi Iwai <tiwai@suse.de>2017-02-03 17:32:57 +0100
commite29c0f967261b0f6a95e05a224341be8f59df2d5 (patch)
tree17efd327417806ecc1cc4200b0d549be6d3a9812 /sound/x86
parentc75b0476245ad01306e4ea510bb3f7591767079f (diff)
downloadop-kernel-dev-e29c0f967261b0f6a95e05a224341be8f59df2d5.zip
op-kernel-dev-e29c0f967261b0f6a95e05a224341be8f59df2d5.tar.gz
ALSA: x86: Fix for CONFIG_PM=n
The direct access to power.runtime_status is taboo, let's use a helper macro to avoid the compile error with CONFIG_PM=n. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86')
-rw-r--r--sound/x86/intel_hdmi_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c
index 4110509..fbfbf5e 100644
--- a/sound/x86/intel_hdmi_audio.c
+++ b/sound/x86/intel_hdmi_audio.c
@@ -1453,7 +1453,7 @@ static int hdmi_lpe_audio_suspend(struct platform_device *pdev,
had_stream = &intelhaddata->stream_data;
substream = intelhaddata->stream_info.had_substream;
- if (intelhaddata->dev->power.runtime_status != RPM_SUSPENDED) {
+ if (!pm_runtime_status_suspended(intelhaddata->dev)) {
dev_err(intelhaddata->dev, "audio stream is active\n");
return -EAGAIN;
}
OpenPOWER on IntegriCloud