]> Git Repo - linux.git/commit
ALSA: hda/realtek: Fix build error without CONFIG_PM
authorTakashi Iwai <[email protected]>
Thu, 2 May 2024 06:24:42 +0000 (08:24 +0200)
committerTakashi Iwai <[email protected]>
Thu, 2 May 2024 06:25:06 +0000 (08:25 +0200)
commitfdb3f29dfe0d51bdb8e7b3a6d876ea8339d44df8
tree5f154be55e797bf3524fc5326745a276cdae8060
parenta30a7a29c35ef9d90bdec86d3051c32f47d6041f
ALSA: hda/realtek: Fix build error without CONFIG_PM

The alc_spec.power_hook is defined only with CONFIG_PM, and the recent
fix overlooked it, resulting in a build error without CONFIG_PM.
Fix it with the simple ifdef and set __maybe_unused for the function.

We may drop the whole CONFIG_PM dependency there, but it should be
done in a separate cleanup patch later.

Fixes: 1e707769df07 ("ALSA: hda/realtek - Set GPIO3 to default at S4 state for Thinkpad with ALC1318")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Message-ID: <20240502062442[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/hda/patch_realtek.c
This page took 0.055257 seconds and 4 git commands to generate.