Commit fdb3f29
committed
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: 1e70776 ("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: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>1 parent a30a7a2 commit fdb3f29
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7204 | 7204 | | |
7205 | 7205 | | |
7206 | 7206 | | |
7207 | | - | |
| 7207 | + | |
7208 | 7208 | | |
7209 | 7209 | | |
7210 | 7210 | | |
| |||
7219 | 7219 | | |
7220 | 7220 | | |
7221 | 7221 | | |
| 7222 | + | |
7222 | 7223 | | |
| 7224 | + | |
7223 | 7225 | | |
7224 | 7226 | | |
7225 | 7227 | | |
| |||
0 commit comments