mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +00:00
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>
This commit is contained in:
parent
c75b047624
commit
e29c0f9672
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user