]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: x86: Fix for CONFIG_PM=n
authorTakashi Iwai <tiwai@suse.de>
Wed, 1 Feb 2017 16:27:48 +0000 (17:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:32:57 +0000 (17:32 +0100)
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>
sound/x86/intel_hdmi_audio.c

index 41105092c11452aa0f8d524c90df35848e2df013..fbfbf5e2b5ad40f21a45687c23ed1da2a280dff6 100644 (file)
@@ -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;
        }